From: Jim Meyering Date: Sat, 2 Jan 1999 19:35:46 +0000 (+0000) Subject: (parse_options): Use XARGMATCH in place of argmatch. X-Git-Tag: FILEUTILS-4_1-b2~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7004c53ab4c551adad61f9a733289ffc3330defe;p=thirdparty%2Fcoreutils.git (parse_options): Use XARGMATCH in place of argmatch. --- diff --git a/src/tail.c b/src/tail.c index d6dac195cd..f87d2f2495 100644 --- a/src/tail.c +++ b/src/tail.c @@ -1248,11 +1248,11 @@ parse_options (int argc, char **argv, case 'f': forever = 1; - follow_mode = (optarg == NULL - ? DEFAULT_FOLLOW_MODE - : XARGCASEMATCH ("--follow", optarg, - follow_mode_string, - follow_mode_map)); + if (optarg == NULL) + follow_mode = DEFAULT_FOLLOW_MODE; + else + XARGMATCH (&follow_mode, "--follow", optarg, + follow_mode_string, follow_mode_map, usage (1)); break; case CHAR_MAX + 1: