aboutsummaryrefslogtreecommitdiffstats
path: root/captype.c
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2013-12-13 04:11:49 +0000
committerEvan Huus <eapache@gmail.com>2013-12-13 04:11:49 +0000
commit86149a1184eb6e80fbd181badb0ccfe39b336fae (patch)
tree8fbad41711d6dc89dfc2b0e22bed90dda6783e07 /captype.c
parente954ce02ed9ae82cb9dd135a8579130cdaed848e (diff)
Don't use optind, we don't actually call getopt or friends and we don't include
the necessary headers on all platforms to have optind defined. Just check that we got arguments in addition to the executable name. svn path=/trunk/; revision=54022
Diffstat (limited to 'captype.c')
-rw-r--r--captype.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/captype.c b/captype.c
index 0e13422dc3..4b54f99482 100644
--- a/captype.c
+++ b/captype.c
@@ -135,7 +135,7 @@ main(int argc, char *argv[])
/* Set the C-language locale to the native environment. */
setlocale(LC_ALL, "");
- if ((argc - optind) < 1) {
+ if (argc < 2) {
usage();
return 1;
}