summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1999-11-19 03:50:50 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1999-11-19 03:50:50 +0000
commit27ef1bbedfc7b4bdb58ec0f6422f4c94e0d80b33 (patch)
tree33165a4923e30beccdf05e7f6a7cba187682ecc9 /usr.bin
parent3a826c7171cff9617c956aa116999de7c4e990d7 (diff)
o Add -Q option to usage string
o Add SOCKS support from FreeBSD
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/whois/whois.c12
1 files changed, 8 insertions, 4 deletions
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 <sys/types.h>
@@ -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);
}