fix unused var if no enable openssl
authorJack Mitchell <ml@communistcode.co.uk>
Wed, 30 Jan 2013 10:53:36 +0000 (18:53 +0800)
committerAndy Green <andy.green@linaro.org>
Wed, 30 Jan 2013 10:53:36 +0000 (18:53 +0800)
Signed-off-by: Jack Mitchell <ml@communistcode.co.uk>
lib/libwebsockets.c

index f5ef23b..068aed4 100644 (file)
@@ -704,7 +704,9 @@ libwebsocket_service_fd(struct libwebsocket_context *context,
        struct timeval tv;
        unsigned char buf[LWS_SEND_BUFFER_PRE_PADDING + 1 +
                         MAX_USER_RX_BUFFER + LWS_SEND_BUFFER_POST_PADDING];
+#ifdef LWS_OPENSSL_SUPPORT
        char ssl_err_buf[512];
+#endif
 
 #ifndef LWS_NO_EXTENSIONS
        int more = 1;