diff options
| author | Mike Barcroft <mike@FreeBSD.org> | 2001-10-17 16:28:12 +0000 |
|---|---|---|
| committer | Mike Barcroft <mike@FreeBSD.org> | 2001-10-17 16:28:12 +0000 |
| commit | d335cbd39f98217602573f598b6417015fa2545f (patch) | |
| tree | 9ef10ab69b42a83d9395cfe048d19e72dddad3b7 | |
| parent | 2032bbdcf73607fd39d7fa514a00a0d93b43836b (diff) | |
Notes
| -rw-r--r-- | usr.bin/whois/whois.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/whois/whois.c b/usr.bin/whois/whois.c index d2a239a56ec5..a6b6c02e1550 100644 --- a/usr.bin/whois/whois.c +++ b/usr.bin/whois/whois.c @@ -110,7 +110,7 @@ main(int argc, char *argv[]) break; case 'c': country = optarg; - break; + break; case 'd': host = DNICHOST; break; @@ -170,7 +170,7 @@ main(int argc, char *argv[]) if (country != NULL) { s_asprintf(&qnichost, "%s%s", country, QNICHOST_TAIL); res = gethostinfo(qnichost, 1); - } else if (use_qnichost) + } else if (use_qnichost) if ((qnichost = choose_server(*argv)) != NULL) res = gethostinfo(qnichost, 1); if (qnichost == NULL) @@ -210,7 +210,7 @@ choose_server(char *domain) return (retval); } -static struct addrinfo * +static struct addrinfo * gethostinfo(char const *host, int exit_on_error) { struct addrinfo hints, *res; @@ -228,7 +228,7 @@ gethostinfo(char const *host, int exit_on_error) return (NULL); } return (res); -} +} /* * Wrapper for asprintf(3) that exits on error. @@ -317,7 +317,7 @@ static void usage(void) { fprintf(stderr, - "usage: whois [-adgimpQrR6] [-c country-code | -h hostname] " + "usage: whois [-aAdgimQrR6] [-c country-code | -h hostname] " "[-p port] name ...\n"); exit(EX_USAGE); } |
