summaryrefslogtreecommitdiffstats
path: root/usr.bin/touch/touch.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/touch/touch.c')
-rw-r--r--usr.bin/touch/touch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/touch/touch.c b/usr.bin/touch/touch.c
index 02f7ccc..32a7319 100644
--- a/usr.bin/touch/touch.c
+++ b/usr.bin/touch/touch.c
@@ -74,7 +74,7 @@ main(argc, argv)
if (gettimeofday(&tv[0], NULL))
err(1, "gettimeofday");
- while ((ch = getopt(argc, argv, "acfmr:t:")) != EOF)
+ while ((ch = getopt(argc, argv, "acfmr:t:")) != -1)
switch(ch) {
case 'a':
aflag = 1;
OpenPOWER on IntegriCloud