diff options
author | mike <mike@FreeBSD.org> | 2001-10-17 16:28:12 +0000 |
---|---|---|
committer | mike <mike@FreeBSD.org> | 2001-10-17 16:28:12 +0000 |
commit | 3997cf6e358781dfc5f9f9ec0745fcfa9c9ffbe1 (patch) | |
tree | 9ef10ab69b42a83d9395cfe048d19e72dddad3b7 /usr.bin/whois/whois.c | |
parent | 55f9dc658c438a79dee8217cfaca190cae5ec2ec (diff) | |
download | FreeBSD-src-3997cf6e358781dfc5f9f9ec0745fcfa9c9ffbe1.zip FreeBSD-src-3997cf6e358781dfc5f9f9ec0745fcfa9c9ffbe1.tar.gz |
Remove some EOL whitespace. Update usage() to current reality.
Diffstat (limited to 'usr.bin/whois/whois.c')
-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 d2a239a..a6b6c02 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); } |