diff options
author | Jim Meyering <jim@meyering.net> | 1998-12-31 21:41:04 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1998-12-31 21:41:04 +0000 |
commit | 431652a8863e62ee36d8f747a50fe3ea6b9bf14a (patch) | |
tree | b1e0f915f9a55c921fd1006cbaf3b2914f2dae31 /src | |
parent | 2e487bb6da77db29e863aab7629503f76df5c944 (diff) | |
download | coreutils-431652a8863e62ee36d8f747a50fe3ea6b9bf14a.tar.xz |
(main): Use XARGCASEMATCH in place of argmatch & co.
Diffstat (limited to 'src')
-rw-r--r-- | src/touch.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/touch.c b/src/touch.c index 3a30b9889..f9ea43a06 100644 --- a/src/touch.c +++ b/src/touch.c @@ -36,7 +36,6 @@ time_t time (); #endif int full_write (); -void invalid_arg (); /* Bitmasks for `change_times'. */ #define CH_ATIME 1 @@ -285,14 +284,9 @@ main (int argc, char **argv) date_set++; break; - case CHAR_MAX + 1: - i = argmatch (optarg, time_args); - if (i < 0) - { - invalid_arg (_("time selector"), optarg, i); - usage (1); - } - change_times |= time_masks[i]; + case CHAR_MAX + 1: /* --time */ + change_times |= XARGCASEMATCH ("--time", optarg, + time_args, time_masks); break; default: |