Fix LWS_NO_SERVER build. 36/3136/1
authorJoakim Soderberg <joakim.soderberg@gmail.com>
Fri, 22 Feb 2013 01:27:59 +0000 (09:27 +0800)
committerKevron Rees <kevron_m_rees@linux.intel.com>
Thu, 7 Mar 2013 21:01:38 +0000 (13:01 -0800)
"int n" was used also when server parts are not compiled, so don't put it inside the LWS_NO_SERVER ifdef.

lib/libwebsockets.c

index a4d352c..80a4ce0 100644 (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;