diff options
author | Evan Huus <eapache@gmail.com> | 2013-12-13 04:11:49 +0000 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2013-12-13 04:11:49 +0000 |
commit | 86149a1184eb6e80fbd181badb0ccfe39b336fae (patch) | |
tree | 8fbad41711d6dc89dfc2b0e22bed90dda6783e07 /captype.c | |
parent | e954ce02ed9ae82cb9dd135a8579130cdaed848e (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |