aboutsummaryrefslogtreecommitdiff
path: root/util-linux/hwclock.c
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux/hwclock.c')
-rw-r--r--util-linux/hwclock.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/util-linux/hwclock.c b/util-linux/hwclock.c
index 3c2683953..11261f47d 100644
--- a/util-linux/hwclock.c
+++ b/util-linux/hwclock.c
@@ -205,12 +205,8 @@ static const struct option hwclock_long_options[] = {
205 bb_applet_long_options = hwclock_long_options; 205 bb_applet_long_options = hwclock_long_options;
206#endif 206#endif
207 207
208 bb_opt_complementaly = "r~ws:w~rs:s~wr:l~u:u~l"; 208 bb_opt_complementally = "!r~ws:w~rs:s~wr:l~u:u~l";
209 opt = bb_getopt_ulflags(argc, argv, "lursw"); 209 opt = bb_getopt_ulflags(argc, argv, "lursw");
210 /* Check only one mode was given */
211 if(opt & BB_GETOPT_ERROR) {
212 bb_show_usage();
213 }
214 210
215 /* If -u or -l wasn't given check if we are using utc */ 211 /* If -u or -l wasn't given check if we are using utc */
216 if (opt & (HWCLOCK_OPT_UTC | HWCLOCK_OPT_LOCALTIME)) 212 if (opt & (HWCLOCK_OPT_UTC | HWCLOCK_OPT_LOCALTIME))