1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

Fix LWS_NO_SERVER build.

"int n" was used also when server parts are not compiled, so don't put it inside the LWS_NO_SERVER ifdef.
This commit is contained in:
Joakim Soderberg 2013-02-22 09:27:59 +08:00 committed by Andy Green
parent fe2dae759d
commit 3baa08cac3

View file

@ -1626,8 +1626,8 @@ libwebsocket_create_context(struct lws_context_creation_info *info)
{
struct libwebsocket_context *context = NULL;
char *p;
#ifndef LWS_NO_SERVER
int n;
#ifndef LWS_NO_SERVER
int opt = 1;
struct libwebsocket *wsi;
struct sockaddr_in serv_addr;