diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-06-09 18:40:07 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-06-09 18:40:07 +0200 |
commit | 2634bf366b298a827d043566656f8696f4dc153c (patch) | |
tree | 72c0b708f16f97d953587422321005067fd6e106 /util-linux/script.c | |
parent | 38d9072b2c9490e67c3423e09b081754095d8c49 (diff) | |
download | busybox-w32-2634bf366b298a827d043566656f8696f4dc153c.tar.gz busybox-w32-2634bf366b298a827d043566656f8696f4dc153c.tar.bz2 busybox-w32-2634bf366b298a827d043566656f8696f4dc153c.zip |
randomconfig fixes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux/script.c')
-rw-r--r-- | util-linux/script.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/util-linux/script.c b/util-linux/script.c index 4e0deb4ef..2e2be33e7 100644 --- a/util-linux/script.c +++ b/util-linux/script.c | |||
@@ -36,16 +36,17 @@ int script_main(int argc UNUSED_PARAM, char **argv) | |||
36 | OPT_t = (1 << 4), | 36 | OPT_t = (1 << 4), |
37 | }; | 37 | }; |
38 | 38 | ||
39 | #if ENABLE_GETOPT_LONG | ||
39 | static const char getopt_longopts[] ALIGN1 = | 40 | static const char getopt_longopts[] ALIGN1 = |
40 | "append\0" No_argument "a" | 41 | "append\0" No_argument "a" |
41 | "command\0" Required_argument "c" | 42 | "command\0" Required_argument "c" |
42 | "flush\0" No_argument "f" | 43 | "flush\0" No_argument "f" |
43 | "quiet\0" No_argument "q" | 44 | "quiet\0" No_argument "q" |
44 | IF_SCRIPTREPLAY("timing\0" No_argument "t") | 45 | IF_SCRIPTREPLAY("timing\0" No_argument "t") |
45 | ; | 46 | ; |
46 | 47 | ||
47 | if (ENABLE_GETOPT_LONG) | 48 | applet_long_options = getopt_longopts; |
48 | applet_long_options = getopt_longopts; | 49 | #endif |
49 | 50 | ||
50 | opt_complementary = "?1"; /* max one arg */ | 51 | opt_complementary = "?1"; /* max one arg */ |
51 | opt = getopt32(argv, "ac:fq" IF_SCRIPTREPLAY("t") , &shell_arg); | 52 | opt = getopt32(argv, "ac:fq" IF_SCRIPTREPLAY("t") , &shell_arg); |