[BACK]Return to net.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / finger

Diff for /src/usr.bin/finger/net.c between version 1.2 and 1.3

version 1.2, 1996/06/26 05:33:18 version 1.3, 1997/01/17 07:12:33
Line 60 
Line 60 
         struct servent *sp;          struct servent *sp;
         struct sockaddr_in sin;          struct sockaddr_in sin;
         int s;          int s;
         char *alist[1], *host, *rindex();          char *alist[1], *host;
   
         if (!(host = rindex(name, '@')))          if (!(host = strrchr(name, '@')))
                 return;                  return;
         *host++ = NULL;          *host++ = NULL;
         if (inet_aton(host, &sin.sin_addr) == 0) {          if (inet_aton(host, &sin.sin_addr) == 0) {

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