summaryrefslogtreecommitdiffstats
path: root/hunt
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2014-03-30 04:40:50 +0000
committerdholland <dholland@NetBSD.org>2014-03-30 04:40:50 +0000
commit3cb1d3cdd0f23cb0b6ffecb45143d260ad9010a5 (patch)
treecbc6a89b5281f35fb77a219f2ff14564acf03c92 /hunt
parentf0fe7328be681a256ca099af64bf9406e2c0aecb (diff)
downloadbsdgames-darwin-3cb1d3cdd0f23cb0b6ffecb45143d260ad9010a5.tar.gz
bsdgames-darwin-3cb1d3cdd0f23cb0b6ffecb45143d260ad9010a5.tar.zst
bsdgames-darwin-3cb1d3cdd0f23cb0b6ffecb45143d260ad9010a5.zip
fix obvious mistake (seems to have been there since 4.4)
Diffstat (limited to 'hunt')
-rw-r--r--hunt/hunt/hunt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hunt/hunt/hunt.c b/hunt/hunt/hunt.c
index ca481383..cc3a0c06 100644
--- a/hunt/hunt/hunt.c
+++ b/hunt/hunt/hunt.c
@@ -1,4 +1,4 @@
-/* $NetBSD: hunt.c,v 1.51 2014/03/30 04:31:21 dholland Exp $ */
+/* $NetBSD: hunt.c,v 1.52 2014/03/30 04:40:50 dholland Exp $ */
/*
* Copyright (c) 1983-2003, Regents of the University of California.
* All rights reserved.
@@ -32,7 +32,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: hunt.c,v 1.51 2014/03/30 04:31:21 dholland Exp $");
+__RCSID("$NetBSD: hunt.c,v 1.52 2014/03/30 04:40:50 dholland Exp $");
#endif /* not lint */
#include <sys/param.h>
@@ -227,7 +227,7 @@ main(int ac, char **av)
else if (optind + 1 == ac)
Sock_host = av[ac - 1];
#else
- if (optind > ac)
+ if (optind < ac)
goto usage;
#endif