From 041b69340dd1c7442874f0e744dbb265e0f7c747 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 2 Jan 1999 16:35:55 +0000 Subject: [PATCH] use XARGMATCH, not XARGCASEMATCH --- src/cp.c | 2 +- src/ls.c | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/cp.c b/src/cp.c index c2d15179c6..4b81546862 100644 --- a/src/cp.c +++ b/src/cp.c @@ -655,7 +655,7 @@ main (int argc, char **argv) break; case CHAR_MAX + 1: - x.sparse_mode = XARGCASEMATCH ("--sparse", optarg, + x.sparse_mode = XARGMATCH ("--sparse", optarg, sparse_type_string, sparse_type); break; diff --git a/src/ls.c b/src/ls.c index 5f967a4ab7..84e0a2d36c 100644 --- a/src/ls.c +++ b/src/ls.c @@ -1099,21 +1099,21 @@ decode_switches (int argc, char **argv) break; case 10: /* --sort */ - sort_type = XARGCASEMATCH ("--sort", optarg, sort_args, sort_types); + sort_type = XARGMATCH ("--sort", optarg, sort_args, sort_types); break; case 11: /* --time */ - time_type = XARGCASEMATCH ("--time", optarg, time_args, time_types); + time_type = XARGMATCH ("--time", optarg, time_args, time_types); break; case 12: /* --format */ - format = XARGCASEMATCH ("--format", optarg, + format = XARGMATCH ("--format", optarg, format_args, format_types); break; case 13: /* --color */ if (optarg) - i = XARGCASEMATCH ("--color", optarg, + i = XARGMATCH ("--color", optarg, color_args, color_types); else /* Using --color with no argument is equivalent to using @@ -1134,14 +1134,14 @@ decode_switches (int argc, char **argv) break; case 14: /* --indicator-style */ - indicator_style = XARGCASEMATCH ("--indicator-style", optarg, + indicator_style = XARGMATCH ("--indicator-style", optarg, indicator_style_args, indicator_style_types); break; case 15: /* --quoting-style */ set_quoting_style (NULL, - XARGCASEMATCH ("--quoting-style", optarg, + XARGMATCH ("--quoting-style", optarg, quoting_style_args, quoting_style_vals)); break; -- 2.47.3