From d335cbd39f98217602573f598b6417015fa2545f Mon Sep 17 00:00:00 2001 From: Mike Barcroft Date: Wed, 17 Oct 2001 16:28:12 +0000 Subject: Remove some EOL whitespace. Update usage() to current reality. --- usr.bin/whois/whois.c | 10 +++++----- 1 file 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); } -- cgit v1.3