Skip to content

Commit

Permalink
sslh-main: fix config_lookup_int call
Browse files Browse the repository at this point in the history
This func takes an int, not a long.  The current code triggers a warning:

sslh-main.c: In function 'config_parse':
sslh-main.c:275:5: warning: passing argument 3 of 'config_lookup_int' from incompatible pointer type [enabled by default]
     if (config_lookup_int(&config, "timeout", &timeout) == CONFIG_TRUE) {
                                               ^
In file included from sslh-main.c:26:0:
/usr/include/libconfig.h:266:12: note: expected 'int *' but argument is of type 'long int *'
 extern LIBCONFIG_API int config_lookup_int(const config_t *config,

Signed-off-by: Mike Frysinger <[email protected]>
  • Loading branch information
vapier committed Sep 17, 2013
1 parent 8252ecf commit c54e232
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sslh-main.c
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ static int config_protocols(config_t *config, struct proto **prots)
static int config_parse(char *filename, struct addrinfo **listen, struct proto **prots)
{
config_t config;
long int timeout;
int timeout;
const char* str;

config_init(&config);
Expand Down

0 comments on commit c54e232

Please sign in to comment.