diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2009-03-15 01:28:30 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2009-03-15 01:28:30 +0000 |
commit | 7241e6d37781dc7e72e2b8b809f2643b98b66c25 (patch) | |
tree | 0edb24823ce755867ce7678021babab3eb8f2b9e /coreutils/uname.c | |
parent | 7aaedcf21ee4c9eb49d7f1f74500c1b84cef75e7 (diff) | |
download | busybox-w32-7241e6d37781dc7e72e2b8b809f2643b98b66c25.tar.gz busybox-w32-7241e6d37781dc7e72e2b8b809f2643b98b66c25.tar.bz2 busybox-w32-7241e6d37781dc7e72e2b8b809f2643b98b66c25.zip |
uname: correct cut/paste error
touch: add long options
function old new delta
static.longopts 137 162 +25
touch_main 221 231 +10
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/0 up/down: 35/0) Total: 35 bytes
Diffstat (limited to 'coreutils/uname.c')
-rw-r--r-- | coreutils/uname.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/uname.c b/coreutils/uname.c index 4c3bf2f3b..33d026f18 100644 --- a/coreutils/uname.c +++ b/coreutils/uname.c | |||
@@ -73,7 +73,7 @@ static const unsigned short utsname_offset[] = { | |||
73 | int uname_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 73 | int uname_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
74 | int uname_main(int argc UNUSED_PARAM, char **argv) | 74 | int uname_main(int argc UNUSED_PARAM, char **argv) |
75 | { | 75 | { |
76 | #if ENABLE_FEATURE_UNEXPAND_LONG_OPTIONS | 76 | #if ENABLE_GETOPT_LONG |
77 | static const char longopts[] ALIGN1 = | 77 | static const char longopts[] ALIGN1 = |
78 | /* name, has_arg, val */ | 78 | /* name, has_arg, val */ |
79 | "all\0" No_argument "a" | 79 | "all\0" No_argument "a" |
@@ -97,7 +97,7 @@ int uname_main(int argc UNUSED_PARAM, char **argv) | |||
97 | const unsigned short *delta; | 97 | const unsigned short *delta; |
98 | unsigned toprint; | 98 | unsigned toprint; |
99 | 99 | ||
100 | USE_FEATURE_UNEXPAND_LONG_OPTIONS(applet_long_options = longopts); | 100 | USE_GETOPT_LONG(applet_long_options = longopts); |
101 | toprint = getopt32(argv, options); | 101 | toprint = getopt32(argv, options); |
102 | 102 | ||
103 | if (argv[optind]) { /* coreutils-6.9 compat */ | 103 | if (argv[optind]) { /* coreutils-6.9 compat */ |