mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
(main): Use XARGCASEMATCH in place of argmatch & co.
This commit is contained in:
1 parent
58d6acdfd3
commit
91dc8874b0
1 file changed
+2
-12
@@ -655,18 +655,8 @@ main (int argc, char **argv)
|
||||
break;
|
||||
|
||||
case CHAR_MAX + 1:
|
||||
{
|
||||
int i;
|
||||
|
||||
/* --sparse={never,auto,always} */
|
||||
i = argmatch (optarg, sparse_type_string);
|
||||
if (i < 0)
|
||||
{
|
||||
invalid_arg (_("sparse type"), optarg, i);
|
||||
usage (1);
|
||||
}
|
||||
x.sparse_mode = sparse_type[i];
|
||||
}
|
||||
x.sparse_mode = XARGCASEMATCH ("--sparse", optarg,
|
||||
sparse_type_string, sparse_type);
|
||||
break;
|
||||
|
||||
case 'a': /* Like -dpR. */
|
||||
|
||||
Reference in new issue
Block a user