[BACK]Return to ping.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sbin / ping

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sbin/ping/ping.c between version 1.36 and 1.37

version 1.36, 1998/04/16 09:02:56 version 1.37, 1998/07/28 19:22:56
Line 1479  pr_addr(struct in_addr *addr)  /* in net
Line 1479  pr_addr(struct in_addr *addr)  /* in net
   
         if ((pingflags & F_NUMERIC)          if ((pingflags & F_NUMERIC)
             || !(hp = gethostbyaddr((char *)addr, sizeof(*addr), AF_INET))) {              || !(hp = gethostbyaddr((char *)addr, sizeof(*addr), AF_INET))) {
                 (void)sprintf(buf, "%s", inet_ntoa(*addr));                  (void)snprintf(buf, sizeof(buf), "%s", inet_ntoa(*addr));
         } else {          } else {
                 (void)sprintf(buf, "%s (%s)", hp->h_name, inet_ntoa(*addr));                  (void)snprintf(buf, sizeof(buf), "%s (%s)", hp->h_name,
                       inet_ntoa(*addr));
         }          }
   
         return buf;          return buf;

Legend:
Removed from v.1.36  
changed lines
  Added in v.1.37

CVSweb <webmaster@jp.NetBSD.org>