Skip to content

Commit

Permalink
Ok, based on the online docs for AIX'es getservbyport_r() I adjusted …
Browse files Browse the repository at this point in the history
  • Loading branch information
bagder committed Oct 3, 2005
1 parent 209e814 commit 876ea69
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ares_getnameinfo.c
Expand Up @@ -269,6 +269,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 == 4 #elif GETSERVBYPORT_R_ARGS == 4
struct servent ret;
struct servent_data sed; struct servent_data sed;
#endif #endif
if (flags & ARES_NI_UDP) if (flags & ARES_NI_UDP)
Expand All @@ -287,7 +288,7 @@ static char *lookup_service(unsigned short port, int flags,
#elif GETSERVBYPORT_R_ARGS == 5 #elif GETSERVBYPORT_R_ARGS == 5
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 = &sed; se = &ret;
if (getservbyport_r(port, proto, se, &sed) == -1) if (getservbyport_r(port, proto, se, &sed) == -1)
se = NULL; se = NULL;
#else #else
Expand Down

0 comments on commit 876ea69

Please sign in to comment.