[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.51 and 1.52

version 1.51, 2015/11/02 17:16:35 version 1.52, 2015/11/02 20:39:37
Line 58 
Line 58 
 #define AFNICHOST       "whois.afrinic.net"  #define AFNICHOST       "whois.afrinic.net"
 #define BNICHOST        "whois.registro.br"  #define BNICHOST        "whois.registro.br"
 #define PDBHOST         "whois.peeringdb.com"  #define PDBHOST         "whois.peeringdb.com"
   #define IANAHOST        "whois.iana.org"
 #define QNICHOST_TAIL   ".whois-servers.net"  #define QNICHOST_TAIL   ".whois-servers.net"
   
 #define WHOIS_PORT      "whois"  #define WHOIS_PORT      "whois"
Line 82 
Line 83 
   
         country = host = NULL;          country = host = NULL;
         flags = rval = 0;          flags = rval = 0;
         while ((ch = getopt(argc, argv, "aAc:dgh:ilmp:PqQrR")) != -1)          while ((ch = getopt(argc, argv, "aAc:dgh:iIlmp:PqQrR")) != -1)
                 switch (ch) {                  switch (ch) {
                 case 'a':                  case 'a':
                         host = ANICHOST;                          host = ANICHOST;
Line 105 
Line 106 
                 case 'i':                  case 'i':
                         host = INICHOST;                          host = INICHOST;
                         break;                          break;
                   case 'I':
                           host = IANAHOST;
                           break;
                 case 'l':                  case 'l':
                         host = LNICHOST;                          host = LNICHOST;
                         break;                          break;
Line 343 
Line 347 
         extern char *__progname;          extern char *__progname;
   
         fprintf(stderr,          fprintf(stderr,
             "usage: %s [-AadgilmPQRr] [-c country-code | -h host] "              "usage: %s [-AadgIilmPQRr] [-c country-code | -h host] "
                 "[-p port] name ...\n", __progname);                  "[-p port] name ...\n", __progname);
         exit(1);          exit(1);
 }  }

Legend:
Removed from v.1.51  
changed lines
  Added in v.1.52