aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2004-08-14 19:53:22 +0000
committerDimitri Sokolyuk <demon@dim13.org>2004-08-14 19:53:22 +0000
commitc2fca04f300128767fb0d44c99d89225fd0c230d (patch)
treec46b3c2479542a36ef2d3fb06631101d614c9387
parent2c3acdb84e2d05d5a445ab50200200b80c9f978d (diff)
add a plus sign in optstring for compatibility with GNU's getopt()
-rw-r--r--watch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/watch.c b/watch.c
index 89a7d72..e8d9773 100644
--- a/watch.c
+++ b/watch.c
@@ -61,7 +61,7 @@ main(int argc, char **argv)
int hold_curs;
char ch;
- while ((ch = getopt(argc, argv, "s:vn")) != -1)
+ while ((ch = getopt(argc, argv, "+s:vn")) != -1)
switch (ch) {
case 'v':
(void) fprintf(stderr, "watch %s %s\n",