diff options
author | Jim Meyering <jim@meyering.net> | 1998-04-14 15:17:32 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1998-04-14 15:17:32 +0000 |
commit | 713c315978828f693f84e10302cdf895816b4c5e (patch) | |
tree | 4831719b6efec15cb5445f21c100a3c3386c95d3 /src/touch.c | |
parent | 8cc46c2a189e0bf16dd83705604396da42bb3055 (diff) | |
download | coreutils-713c315978828f693f84e10302cdf895816b4c5e.tar.xz |
Use STREQ in string equality tests, not strcmp.
Diffstat (limited to 'src/touch.c')
-rw-r--r-- | src/touch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/touch.c b/src/touch.c index 7f90b5f52..8bb24b8d5 100644 --- a/src/touch.c +++ b/src/touch.c @@ -366,7 +366,7 @@ main (int argc, char **argv) date_set++; } - if (!date_set && optind < argc && strcmp (argv[optind - 1], "--")) + if (!date_set && optind < argc && !STREQ (argv[optind - 1], "--")) { newtime = posixtime (argv[optind]); if (newtime != (time_t) -1) |