From 27ef1bbedfc7b4bdb58ec0f6422f4c94e0d80b33 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Fri, 19 Nov 1999 03:50:50 +0000 Subject: o Add -Q option to usage string o Add SOCKS support from FreeBSD --- usr.bin/whois/whois.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'usr.bin') diff --git a/usr.bin/whois/whois.c b/usr.bin/whois/whois.c index df32e705723..870e8e6120b 100644 --- a/usr.bin/whois/whois.c +++ b/usr.bin/whois/whois.c @@ -1,5 +1,4 @@ -/* $OpenBSD: whois.c,v 1.8 1999/11/15 19:41:00 millert Exp $ */ -/* $NetBSD: whois.c,v 1.5 1994/11/14 05:13:25 jtc Exp $ */ +/* $OpenBSD: whois.c,v 1.9 1999/11/19 03:50:49 millert Exp $ */ /* * Copyright (c) 1980, 1993 @@ -43,8 +42,9 @@ static char copyright[] = #ifndef lint #if 0 static char sccsid[] = "@(#)whois.c 8.1 (Berkeley) 6/6/93"; +#else +static char rcsid[] = "$OpenBSD: whois.c,v 1.9 1999/11/19 03:50:49 millert Exp $"; #endif -static char rcsid[] = "$OpenBSD: whois.c,v 1.8 1999/11/15 19:41:00 millert Exp $"; #endif /* not lint */ #include @@ -91,6 +91,10 @@ main(argc, argv) struct hostent *hp; struct sockaddr_in sin; +#ifdef SOCKS + SOCKSinit(argv[0]); +#endif + host = NULL; qnichost = NULL; flags = 0; @@ -276,6 +280,6 @@ usage() { (void)fprintf(stderr, - "usage: whois [-adgimpqrR] [-h hostname] name ...\n"); + "usage: whois [-adgimpqQrR] [-h hostname] name ...\n"); exit(EX_USAGE); } -- cgit v1.2.3