summaryrefslogtreecommitdiff
path: root/src/ls.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1998-03-21 08:47:54 +0000
committerJim Meyering <jim@meyering.net>1998-03-21 08:47:54 +0000
commita33adfebb27598fceace10531affb3469f9387bf (patch)
treed1fc68a6d1cbf207f32d5e0f922ce97d0cde1b24 /src/ls.c
parentb50b941826d8a5ccd904e547cf8e2e9e9d386b6c (diff)
downloadcoreutils-a33adfebb27598fceace10531affb3469f9387bf.tar.xz
(decode_switches): Pass a null pointer instead of address
of quotearg_quoting_options.
Diffstat (limited to 'src/ls.c')
-rw-r--r--src/ls.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/src/ls.c b/src/ls.c
index b154e8414..f75acbf11 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -810,13 +810,13 @@ decode_switches (int argc, char **argv)
case LS_MULTI_COL:
/* This is for the `dir' program. */
format = many_per_line;
- set_quoting_style (&quotearg_quoting_options, escape_quoting_style);
+ set_quoting_style (NULL, escape_quoting_style);
break;
case LS_LONG_FORMAT:
/* This is for the `vdir' program. */
format = long_format;
- set_quoting_style (&quotearg_quoting_options, escape_quoting_style);
+ set_quoting_style (NULL, escape_quoting_style);
break;
case LS_LS:
@@ -855,7 +855,7 @@ decode_switches (int argc, char **argv)
if ((p = getenv ("QUOTING_STYLE"))
&& 0 <= (i = argmatch (p, quoting_style_args)))
- set_quoting_style (&quotearg_quoting_options, (enum quoting_style) i);
+ set_quoting_style (NULL, (enum quoting_style) i);
if ((p = getenv ("BLOCKSIZE"))
&& strncmp (p, "HUMAN", sizeof ("HUMAN") - 1) == 0)
@@ -921,7 +921,7 @@ decode_switches (int argc, char **argv)
break;
case 'b':
- set_quoting_style (&quotearg_quoting_options, escape_quoting_style);
+ set_quoting_style (NULL, escape_quoting_style);
break;
case 'c':
@@ -1058,11 +1058,11 @@ decode_switches (int argc, char **argv)
break;
case 'N':
- set_quoting_style (&quotearg_quoting_options, literal_quoting_style);
+ set_quoting_style (NULL, literal_quoting_style);
break;
case 'Q':
- set_quoting_style (&quotearg_quoting_options, c_quoting_style);
+ set_quoting_style (NULL, c_quoting_style);
break;
case 'R':
@@ -1171,8 +1171,7 @@ decode_switches (int argc, char **argv)
invalid_arg (_("quoting style"), optarg, i);
usage (EXIT_FAILURE);
}
- set_quoting_style (&quotearg_quoting_options,
- (enum quoting_style) i);
+ set_quoting_style (NULL, (enum quoting_style) i);
break;
case 16:
@@ -1187,12 +1186,12 @@ decode_switches (int argc, char **argv)
if (human_readable_base)
output_units = 1;
- filename_quoting_options = clone_quoting_options (&quotearg_quoting_options);
+ filename_quoting_options = clone_quoting_options (NULL);
if (indicator_style != none)
for (p = "*=@|" + (int) indicator_style - 1; *p; p++)
set_char_quoting (filename_quoting_options, *p, 1);
- dirname_quoting_options = clone_quoting_options (&quotearg_quoting_options);
+ dirname_quoting_options = clone_quoting_options (NULL);
set_char_quoting (dirname_quoting_options, ':', 1);
return optind;