1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

Fix compiler warning

This commit is contained in:
Yang Tse 2005-12-09 22:23:50 +00:00
parent 4f69318e12
commit 4b1a91b64f

View File

@ -270,6 +270,7 @@ static char *lookup_service(unsigned short port, int flags,
char buf[4096];
int len = 4096;
#elif GETSERVBYPORT_R_ARGS == 5
struct servent ret;
char buf[4096];
int len = 4096;
#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))
se = NULL;
#elif GETSERVBYPORT_R_ARGS == 5
se = &ret;
se = getservbyport_r(port, proto, se, buf, len);
#elif GETSERVBYPORT_R_ARGS == 4
se = &ret;