diff options
Diffstat (limited to 'coreutils/ls.c')
-rw-r--r-- | coreutils/ls.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/coreutils/ls.c b/coreutils/ls.c index a5bd0e304..8545edda9 100644 --- a/coreutils/ls.c +++ b/coreutils/ls.c | |||
@@ -117,13 +117,12 @@ SPLIT_SUBDIR = 2, | |||
117 | 117 | ||
118 | /* colored LS support by JaWi, janwillem.janssen@lxtreme.nl */ | 118 | /* colored LS support by JaWi, janwillem.janssen@lxtreme.nl */ |
119 | #if ENABLE_FEATURE_LS_COLOR | 119 | #if ENABLE_FEATURE_LS_COLOR |
120 | static int show_color; | 120 | static smallint show_color; |
121 | /* long option entry used only for --color, which has no short option | 121 | /* long option entry used only for --color, which has no short option |
122 | * equivalent */ | 122 | * equivalent */ |
123 | static const struct option ls_color_opt[] = { | 123 | static const char ls_color_opt[] = |
124 | { "color", optional_argument, NULL, 1 }, | 124 | "color\0" Optional_argument "\xff" /* no short equivalent */ |
125 | { NULL, 0, NULL, 0 } | 125 | "\0"; |
126 | }; | ||
127 | #else | 126 | #else |
128 | enum { show_color = 0 }; | 127 | enum { show_color = 0 }; |
129 | #endif | 128 | #endif |