diff options
author | Mike Frysinger <vapier@gentoo.org> | 2008-02-15 02:33:22 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2008-02-15 02:33:22 +0000 |
commit | ea915363e747d4e42215016ceaef4b19e01baf55 (patch) | |
tree | f3fa45c8b434124c650b25410d57431afe9f2ea2 | |
parent | 6b160e490d4d77596c1603d34d0a1ca0579a82da (diff) | |
download | busybox-w32-ea915363e747d4e42215016ceaef4b19e01baf55.tar.gz busybox-w32-ea915363e747d4e42215016ceaef4b19e01baf55.tar.bz2 busybox-w32-ea915363e747d4e42215016ceaef4b19e01baf55.zip |
fix build failure when long opts are enabled
-rw-r--r-- | util-linux/rtcwake.c | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/util-linux/rtcwake.c b/util-linux/rtcwake.c index 718f43d45..c7d5a4c12 100644 --- a/util-linux/rtcwake.c +++ b/util-linux/rtcwake.c | |||
@@ -122,17 +122,16 @@ int rtcwake_main(int argc, char **argv) | |||
122 | int fd; | 122 | int fd; |
123 | 123 | ||
124 | #if ENABLE_GETOPT_LONG | 124 | #if ENABLE_GETOPT_LONG |
125 | static const char rtcwake_longopts[] ALIGN1 = | 125 | static const char rtcwake_longopts[] ALIGN1 = |
126 | "auto\0" No_argument "a" | 126 | "auto\0" No_argument "a" |
127 | "local\0" No_argument "l" | 127 | "local\0" No_argument "l" |
128 | "utc\0" No_argument "u" | 128 | "utc\0" No_argument "u" |
129 | "device\0" Required_argument "d" | 129 | "device\0" Required_argument "d" |
130 | "mode\0" Required_argument "m" | 130 | "mode\0" Required_argument "m" |
131 | "seconds\0" Required_argument "s" | 131 | "seconds\0" Required_argument "s" |
132 | "time\0" Required_argument "t" | 132 | "time\0" Required_argument "t" |
133 | ; | 133 | ; |
134 | applet_long_options = rtcwake_longopts; | 134 | applet_long_options = rtcwake_longopts; |
135 | } | ||
136 | #endif | 135 | #endif |
137 | opt = getopt32(argv, "alud:m:s:t:", &rtcname, &suspend, &opt_seconds, &opt_time); | 136 | opt = getopt32(argv, "alud:m:s:t:", &rtcname, &suspend, &opt_seconds, &opt_time); |
138 | 137 | ||