diff options
Diffstat (limited to 'manual/examples/subopt.c')
-rw-r--r-- | manual/examples/subopt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/manual/examples/subopt.c b/manual/examples/subopt.c index 4a89f6441e..df71720fe9 100644 --- a/manual/examples/subopt.c +++ b/manual/examples/subopt.c @@ -29,7 +29,7 @@ main (int argc, char *argv[]) char *subopts, *value; int opt; - while ((opt = getopt (argc, argv, "at:o:")) != EOF) + while ((opt = getopt (argc, argv, "at:o:")) != -1) switch (opt) { case 'a': |