From: Gert Doering Date: Fri, 15 Nov 2013 14:39:20 +0000 (+0100) Subject: Fix argument type warning introduced by http extra proxy header patch. X-Git-Tag: v2.4_alpha1~531 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=16e24daaba4432e0a905478bab23b65f904be135;p=thirdparty%2Fopenvpn.git Fix argument type warning introduced by http extra proxy header patch. d0cb816cf8be68359617b61a55799f6330901f6a introduced add_proxy_headers(), passing "port" as "const char *" - but it should be an "int". As port is not yet actually used inside add_proxy_headers(), it's just a warning. Signed-off-by: Gert Doering Acked-by: Arne Schwabe Message-Id: <1384526517-6020-1-git-send-email-gert@greenie.muc.de> URL: http://article.gmane.org/gmane.network.openvpn.devel/7973 --- diff --git a/src/openvpn/proxy.c b/src/openvpn/proxy.c index ed4aedd80..c3496e292 100644 --- a/src/openvpn/proxy.c +++ b/src/openvpn/proxy.c @@ -492,7 +492,7 @@ bool add_proxy_headers (struct http_proxy_info *p, socket_descriptor_t sd, /* already open to proxy */ const char *host, /* openvpn server remote */ - const char *port /* openvpn server port */ + const int port /* openvpn server port */ ) { char buf[512];