diff options
Diffstat (limited to 'coreutils/ls.c')
-rw-r--r-- | coreutils/ls.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/coreutils/ls.c b/coreutils/ls.c index 0099f18fe..8ba4ab758 100644 --- a/coreutils/ls.c +++ b/coreutils/ls.c | |||
@@ -877,7 +877,7 @@ int ls_main(int argc, char **argv) | |||
877 | struct dnode **dnp; | 877 | struct dnode **dnp; |
878 | struct dnode *dn; | 878 | struct dnode *dn; |
879 | struct dnode *cur; | 879 | struct dnode *cur; |
880 | long opt; | 880 | unsigned opt; |
881 | int nfiles = 0; | 881 | int nfiles = 0; |
882 | int dnfiles; | 882 | int dnfiles; |
883 | int dndirs; | 883 | int dndirs; |
@@ -904,12 +904,12 @@ int ls_main(int argc, char **argv) | |||
904 | #endif | 904 | #endif |
905 | 905 | ||
906 | #ifdef CONFIG_FEATURE_LS_COLOR | 906 | #ifdef CONFIG_FEATURE_LS_COLOR |
907 | bb_applet_long_options = ls_color_opt; | 907 | applet_long_options = ls_color_opt; |
908 | #endif | 908 | #endif |
909 | 909 | ||
910 | /* process options */ | 910 | /* process options */ |
911 | #ifdef CONFIG_FEATURE_AUTOWIDTH | 911 | #ifdef CONFIG_FEATURE_AUTOWIDTH |
912 | opt = bb_getopt_ulflags(argc, argv, ls_options, &tabstops_str, &terminal_width_str | 912 | opt = getopt32(argc, argv, ls_options, &tabstops_str, &terminal_width_str |
913 | #ifdef CONFIG_FEATURE_LS_COLOR | 913 | #ifdef CONFIG_FEATURE_LS_COLOR |
914 | , &color_opt | 914 | , &color_opt |
915 | #endif | 915 | #endif |
@@ -921,7 +921,7 @@ int ls_main(int argc, char **argv) | |||
921 | terminal_width = atoi(terminal_width_str); | 921 | terminal_width = atoi(terminal_width_str); |
922 | } | 922 | } |
923 | #else | 923 | #else |
924 | opt = bb_getopt_ulflags(argc, argv, ls_options | 924 | opt = getopt32(argc, argv, ls_options |
925 | #ifdef CONFIG_FEATURE_LS_COLOR | 925 | #ifdef CONFIG_FEATURE_LS_COLOR |
926 | , &color_opt | 926 | , &color_opt |
927 | #endif | 927 | #endif |