fix simpleUPnPcommand() prototype
This commit is contained in:
parent
70f253be54
commit
5a5b311784
|
@ -98,7 +98,7 @@ MINIUPNP_LIBSPEC void parserootdesc(const char * buffer, int bufsize, struct IGD
|
||||||
* pointer - OK
|
* pointer - OK
|
||||||
* NULL - error */
|
* NULL - error */
|
||||||
char *
|
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,
|
const char * action, struct UPNParg * args,
|
||||||
int * bufsize)
|
int * bufsize)
|
||||||
{
|
{
|
||||||
|
@ -197,9 +197,9 @@ simpleUPnPcommand(SOCKET s, const char * url, const char * service,
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
if(!parseURL(url, hostname, &port, &path, NULL)) return NULL;
|
if(!parseURL(url, hostname, &port, &path, NULL)) return NULL;
|
||||||
if(ISINVALID(s)) {
|
if(ISINVALID((SOCKET)s)) {
|
||||||
s = connecthostport(hostname, port, 0);
|
s = connecthostport(hostname, port, 0);
|
||||||
if(ISINVALID(s)) {
|
if(ISINVALID((SOCKET)s)) {
|
||||||
/* failed to connect */
|
/* failed to connect */
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue