fix without server 72/3072/1
authorAndy Green <andy.green@linaro.org>
Mon, 11 Feb 2013 11:36:15 +0000 (19:36 +0800)
committerKevron Rees <kevron_m_rees@linux.intel.com>
Thu, 7 Mar 2013 21:01:34 +0000 (13:01 -0800)
Signed-off-by: Andy Green <andy.green@linaro.org>
lib/libwebsockets.c

index 560fb09..3889fdf 100644 (file)
@@ -1608,10 +1608,10 @@ int user_callback_handle_rxflow(callback_function callback_function,
 struct libwebsocket_context *
 libwebsocket_create_context(struct lws_context_creation_info *info)
 {
-       int n;
        struct libwebsocket_context *context = NULL;
        char *p;
 #ifndef LWS_NO_SERVER
+       int n;
        int opt = 1;
        struct libwebsocket *wsi;
        struct sockaddr_in serv_addr;