diff options
Diffstat (limited to 'util-linux/hwclock.c')
-rw-r--r-- | util-linux/hwclock.c | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/util-linux/hwclock.c b/util-linux/hwclock.c index 882a0c55a..ff696a3d7 100644 --- a/util-linux/hwclock.c +++ b/util-linux/hwclock.c | |||
@@ -178,16 +178,15 @@ int hwclock_main(int argc, char **argv) | |||
178 | int utc; | 178 | int utc; |
179 | 179 | ||
180 | #if ENABLE_FEATURE_HWCLOCK_LONG_OPTIONS | 180 | #if ENABLE_FEATURE_HWCLOCK_LONG_OPTIONS |
181 | static const struct option hwclock_long_options[] = { | 181 | static const char hwclock_longopts[] = |
182 | { "localtime", 0, 0, 'l' }, | 182 | "localtime\0" No_argument "l" |
183 | { "utc", 0, 0, 'u' }, | 183 | "utc\0" No_argument "u" |
184 | { "show", 0, 0, 'r' }, | 184 | "show\0" No_argument "r" |
185 | { "hctosys", 0, 0, 's' }, | 185 | "hctosys\0" No_argument "s" |
186 | { "systohc", 0, 0, 'w' }, | 186 | "systohc\0" No_argument "w" |
187 | { "file", 1, 0, 'f' }, | 187 | "file\0" Required_argument "f" |
188 | { 0, 0, 0, 0 } | 188 | "\0"; |
189 | }; | 189 | applet_long_options = hwclock_longopts; |
190 | applet_long_options = hwclock_long_options; | ||
191 | #endif | 190 | #endif |
192 | opt_complementary = "r--ws:w--rs:s--wr:l--u:u--l"; | 191 | opt_complementary = "r--ws:w--rs:s--wr:l--u:u--l"; |
193 | opt = getopt32(argc, argv, "lurswf:", &rtcname); | 192 | opt = getopt32(argc, argv, "lurswf:", &rtcname); |