[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.43 and 1.44

version 1.43, 2010/03/04 21:37:56 version 1.44, 2013/03/05 16:09:10
Line 57 
Line 57 
 #define LNICHOST        "whois.lacnic.net"  #define LNICHOST        "whois.lacnic.net"
 #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 QNICHOST_TAIL   ".whois-servers.net"  #define QNICHOST_TAIL   ".whois-servers.net"
   
 #define WHOIS_PORT      "whois"  #define WHOIS_PORT      "whois"
Line 81 
Line 82 
   
         country = host = NULL;          country = host = NULL;
         flags = rval = 0;          flags = rval = 0;
         while ((ch = getopt(argc, argv, "aAc:dgh:ilmp:qQrR")) != -1)          while ((ch = getopt(argc, argv, "aAc:dgh:ilmp:PqQrR")) != -1)
                 switch (ch) {                  switch (ch) {
                 case 'a':                  case 'a':
                         host = ANICHOST;                          host = ANICHOST;
Line 113 
Line 114 
                 case 'p':                  case 'p':
                         port_whois = optarg;                          port_whois = optarg;
                         break;                          break;
                   case 'P':
                           host = PDBHOST;
                           break;
                 case 'q':                  case 'q':
                         /* deprecated, now the default */                          /* deprecated, now the default */
                         break;                          break;
Line 306 
Line 310 
         extern char *__progname;          extern char *__progname;
   
         fprintf(stderr,          fprintf(stderr,
             "usage: %s [-AadgilmQRr] [-c country-code | -h host] "              "usage: %s [-AadgilmPQRr] [-c country-code | -h host] "
                 "[-p port] name ...\n", __progname);                  "[-p port] name ...\n", __progname);
         exit(1);          exit(1);
 }  }

Legend:
Removed from v.1.43  
changed lines
  Added in v.1.44