fix NO_EXTENSIONS
authorAndy Green <andy.green@linaro.org>
Sun, 23 Mar 2014 07:15:54 +0000 (15:15 +0800)
committerAndy Green <andy.green@linaro.org>
Sun, 23 Mar 2014 07:15:54 +0000 (15:15 +0800)
reported by gaby64
https://github.com/warmcat/libwebsockets/issues/89#issuecomment-38375684

Signed-off-by: Andy Green <andy.green@linaro.org>
lib/client-parser.c

index 23c8f07..677b3df 100644 (file)
@@ -26,9 +26,9 @@ int libwebsocket_client_rx_sm(struct libwebsocket *wsi, unsigned char c)
        int callback_action = LWS_CALLBACK_CLIENT_RECEIVE;
        int handled;
        struct lws_tokens eff_buf;
+       int m;
 #ifndef LWS_NO_EXTENSIONS
        int n;
-       int m;
 #endif
 
        switch (wsi->lws_rx_parse_state) {