diff options
author | Jim Meyering <jim@meyering.net> | 1997-02-01 03:03:44 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1997-02-01 03:03:44 +0000 |
commit | 4f51b86bfb737aadf750d70b6a7bd4e0ec36962f (patch) | |
tree | 0be3383f62cf71924751407a7bbf4bea5733ab22 /src/touch.c | |
parent | c2d2dec516bd776d6acba7637d2e9ee721394604 (diff) | |
download | coreutils-4f51b86bfb737aadf750d70b6a7bd4e0ec36962f.tar.xz |
Compare getopt_long return value against -1, not EOF. Use NULL, not '(int *) 0' as last parameter in getopt_long call.
Diffstat (limited to 'src/touch.c')
-rw-r--r-- | src/touch.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/touch.c b/src/touch.c index be49942ff..3855f5766 100644 --- a/src/touch.c +++ b/src/touch.c @@ -279,8 +279,7 @@ main (int argc, char **argv) change_times = no_create = use_ref = posix_date = flexible_date = 0; newtime = (time_t) -1; - while ((c = getopt_long (argc, argv, "acd:fmr:t:", longopts, (int *) 0)) - != EOF) + while ((c = getopt_long (argc, argv, "acd:fmr:t:", longopts, NULL)) != -1) { switch (c) { |