aboutsummaryrefslogtreecommitdiff
path: root/manual/examples/subopt.c
diff options
context:
space:
mode:
Diffstat (limited to 'manual/examples/subopt.c')
-rw-r--r--manual/examples/subopt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/manual/examples/subopt.c b/manual/examples/subopt.c
index 4a89f64..df71720 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':