From 632a0acc99ebba050ed03c8f376cb41ee0744068 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Sat, 15 Jul 2017 19:02:04 +0800 Subject: [PATCH] clean: fixes for appveyor warnings --- lib/libwebsockets.h | 2 +- lib/server-handshake.c | 2 +- plugins/protocol_lws_server_status.c | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/libwebsockets.h b/lib/libwebsockets.h index 35287be..13cff6d 100644 --- a/lib/libwebsockets.h +++ b/lib/libwebsockets.h @@ -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); diff --git a/lib/server-handshake.c b/lib/server-handshake.c index d989fdb..ec9b14e 100644 --- a/lib/server-handshake.c +++ b/lib/server-handshake.c @@ -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--; diff --git a/plugins/protocol_lws_server_status.c b/plugins/protocol_lws_server_status.c index fb6d13f..96b2ef2 100644 --- a/plugins/protocol_lws_server_status.c +++ b/plugins/protocol_lws_server_status.c @@ -23,6 +23,7 @@ #include "../lib/libwebsockets.h" #include #include +#include struct lws_ss_load_sample { time_t t; -- 2.7.4