diff options
Diffstat (limited to 'socket_init.h')
-rw-r--r-- | socket_init.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/socket_init.h b/socket_init.h index ceddb9c..ab223dc 100644 --- a/socket_init.h +++ b/socket_init.h @@ -4,7 +4,7 @@ int init_socket( server_socket_t *sckdata, server_config_t *scfg ){ if ( (uint16_t)atoi(scfg->bind_port->valuestring) == 0 ) return SOCKET_INIT_FAILED; - if ( scfg->bind_address == NULL || (long long int)strlen(scfg->bind_address->valuestring) <= 0 || strcmp((const char*)scfg->bind_address->valuestring, "") == 0 ) + if ( scfg->bind_address == NULL || (int64_t)strlen(scfg->bind_address->valuestring) <= 0 || strcmp((const char*)scfg->bind_address->valuestring, "") == 0 ) return SOCKET_INIT_FAILED; sckdata->socket_fd = socket( AF_INET, SOCK_STREAM, IPPROTO_TCP ); if ( sckdata->socket_fd == -1 ) |