/[inetutils]/inetutils/libinetutils/ruserok.c
ViewVC logotype

Diff of /inetutils/libinetutils/ruserok.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by alainm, Tue Aug 15 04:49:13 2000 UTC revision 1.2 by gray, Tue May 14 15:15:05 2002 UTC
# Line 87  ruserok (const char *rhost, int superuse Line 87  ruserok (const char *rhost, int superuse
87    hp = gethostbyname (rhost);    hp = gethostbyname (rhost);
88    if (hp == NULL)    if (hp == NULL)
89      return -1;      return -1;
90  #ifdef HAVE_HOSTENT_H_ADDR_LIST  #ifdef HAVE_STRUCT_HOSTENT_H_ADDR_LIST
91    for (ap = hp->h_addr_list; *ap; ++ap)    for (ap = hp->h_addr_list; *ap; ++ap)
92      {      {
93        memcpy (&addr, *ap, sizeof (addr));        memcpy (&addr, *ap, sizeof (addr));

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26