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

Diff for /src/usr.bin/whois/whois.c between version 1.22 and 1.23

version 1.22, 2003/01/07 17:24:08 version 1.23, 2003/01/15 23:16:29
Line 101 
Line 101 
         country = host = server = NULL;          country = host = server = NULL;
         flags = rval = 0;          flags = rval = 0;
         while ((ch = getopt(argc, argv, "aAc:dgh:ilmp:qQrR6")) != -1)          while ((ch = getopt(argc, argv, "aAc:dgh:ilmp:qQrR6")) != -1)
                 switch((char)ch) {                  switch(ch) {
                 case 'a':                  case 'a':
                         host = ANICHOST;                          host = ANICHOST;
                         break;                          break;
Line 246 
Line 246 
                         for (i = 0; ip_whois[i] != NULL; i++) {                          for (i = 0; ip_whois[i] != NULL; i++) {
                                 if (strstr(buf, ip_whois[i]) != NULL) {                                  if (strstr(buf, ip_whois[i]) != NULL) {
                                         nhost = strdup(ip_whois[i]);                                          nhost = strdup(ip_whois[i]);
                                           if (nhost == NULL)
                                                   err(1, "strdup");
                                         break;                                          break;
                                 }                                  }
                         }                          }
Line 304 
Line 306 
         extern char *__progname;          extern char *__progname;
   
         (void)fprintf(stderr,          (void)fprintf(stderr,
             "usage: %s [-aAdgilmpQrR6] [-c country-code | -h hostname] "              "usage: %s [-aAdgilmQrR6] [-c country-code | -h hostname] "
                 "[-p port] name ...\n", __progname);                  "[-p port] name ...\n", __progname);
         exit(1);          exit(1);
 }  }

Legend:
Removed from v.1.22  
changed lines
  Added in v.1.23