clean: fixes for appveyor warnings
authorAndy Green <andy@warmcat.com>
Sat, 15 Jul 2017 11:02:04 +0000 (19:02 +0800)
committerAndy Green <andy@warmcat.com>
Tue, 18 Jul 2017 20:25:20 +0000 (04:25 +0800)
lib/libwebsockets.h
lib/server-handshake.c
plugins/protocol_lws_server_status.c

index 35287be2760a21f0956f4e11fa641a38ab606a25..13cff6de26837a98f6f3ca3b4917ec1fa56da472 100644 (file)
@@ -4066,7 +4066,7 @@ typedef union {
 * parent may be NULL, if given it should be an existing wsi that will become the
 * parent of the new wsi created by this call.
 */
-LWS_VISIBLE struct lws *
+LWS_VISIBLE LWS_EXTERN struct lws *
 lws_adopt_descriptor_vhost(struct lws_vhost *vh, lws_adoption_type type,
                           lws_sock_file_fd_type fd, const char *vh_prot_name,
                           struct lws *parent);
index d989fdb6335f77802b9ffbb09fc564b5cdf6cb33..ec9b14e97b9dd0697eda6bdcde8866b355bad6bb 100644 (file)
@@ -156,7 +156,7 @@ lws_extension_server_handshake(struct lws *wsi, char **p, int budget)
                                          LWS_EXT_CB_CONSTRUCT,
                                          (void *)&wsi->act_ext_user[
                                                            wsi->count_act_ext],
-                                         &opts, 0)) {
+                                         (void *)&opts, 0)) {
                                lwsl_notice("ext %s failed construction\n",
                                            ext_name);
                                ext_count--;
index fb6d13f6a307dff8ac9651de5bf274fa4ddde921..96b2ef2985df916470bbf4bf1b4efa2d8e2b0871 100644 (file)
@@ -23,6 +23,7 @@
 #include "../lib/libwebsockets.h"
 #include <string.h>
 #include <stdlib.h>
+#include <fcntl.h>
 
 struct lws_ss_load_sample {
        time_t t;