mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
Fix compiler warning
This commit is contained in:
parent
4f69318e12
commit
4b1a91b64f
@ -270,6 +270,7 @@ static char *lookup_service(unsigned short port, int flags,
|
|||||||
char buf[4096];
|
char buf[4096];
|
||||||
int len = 4096;
|
int len = 4096;
|
||||||
#elif GETSERVBYPORT_R_ARGS == 5
|
#elif GETSERVBYPORT_R_ARGS == 5
|
||||||
|
struct servent ret;
|
||||||
char buf[4096];
|
char buf[4096];
|
||||||
int len = 4096;
|
int len = 4096;
|
||||||
#elif GETSERVBYPORT_R_ARGS == 4
|
#elif GETSERVBYPORT_R_ARGS == 4
|
||||||
@ -291,6 +292,7 @@ static char *lookup_service(unsigned short port, int flags,
|
|||||||
if (getservbyport_r(port, proto, se, buf, len, &ret))
|
if (getservbyport_r(port, proto, se, buf, len, &ret))
|
||||||
se = NULL;
|
se = NULL;
|
||||||
#elif GETSERVBYPORT_R_ARGS == 5
|
#elif GETSERVBYPORT_R_ARGS == 5
|
||||||
|
se = &ret;
|
||||||
se = getservbyport_r(port, proto, se, buf, len);
|
se = getservbyport_r(port, proto, se, buf, len);
|
||||||
#elif GETSERVBYPORT_R_ARGS == 4
|
#elif GETSERVBYPORT_R_ARGS == 4
|
||||||
se = &ret;
|
se = &ret;
|
||||||
|
Loading…
Reference in New Issue
Block a user