From 5a5b311784c72ff6be113338366d2bdb6b518292 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Wed, 5 Jun 2024 02:01:57 +0200 Subject: [PATCH] fix simpleUPnPcommand() prototype --- miniupnpc/src/miniupnpc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/miniupnpc/src/miniupnpc.c b/miniupnpc/src/miniupnpc.c index 261c360..9da1496 100644 --- a/miniupnpc/src/miniupnpc.c +++ b/miniupnpc/src/miniupnpc.c @@ -98,7 +98,7 @@ MINIUPNP_LIBSPEC void parserootdesc(const char * buffer, int bufsize, struct IGD * pointer - OK * NULL - error */ char * -simpleUPnPcommand(SOCKET s, const char * url, const char * service, +simpleUPnPcommand(int s, const char * url, const char * service, const char * action, struct UPNParg * args, int * bufsize) { @@ -197,9 +197,9 @@ simpleUPnPcommand(SOCKET s, const char * url, const char * service, return NULL; } if(!parseURL(url, hostname, &port, &path, NULL)) return NULL; - if(ISINVALID(s)) { + if(ISINVALID((SOCKET)s)) { s = connecthostport(hostname, port, 0); - if(ISINVALID(s)) { + if(ISINVALID((SOCKET)s)) { /* failed to connect */ return NULL; }