bc: convert to "G trick" - this returns bc to zero bss increase
[oweals/busybox.git] / util-linux / rtcwake.c
index 01ab8ebb9d4a5d22242b8701c1d740d030774548..8ffa4f3a60239ad11a289991517d557ffe8e199a 100644 (file)
@@ -27,7 +27,7 @@
 //config:      default y
 //config:      select PLATFORM_LINUX
 //config:      help
-//config:        Enter a system sleep state until specified wakeup time.
+//config:      Enter a system sleep state until specified wakeup time.
 
 //applet:IF_RTCWAKE(APPLET(rtcwake, BB_DIR_USR_SBIN, BB_SUID_DROP))
 
@@ -154,11 +154,11 @@ int rtcwake_main(int argc UNUSED_PARAM, char **argv)
                "seconds\0" Required_argument "s"
                "time\0"    Required_argument "t"
                ;
-       applet_long_options = rtcwake_longopts;
 #endif
-       /* Must have -s or -t, exclusive */
-       opt_complementary = "s:t:s--t:t--s";
-       opt = getopt32(argv, "alud:m:s:t:", &rtcname, &suspend, &opt_seconds, &opt_time);
+       opt = getopt32long(argv,
+                       /* Must have -s or -t, exclusive */
+                       "^alud:m:s:t:" "\0" "s:t:s--t:t--s", rtcwake_longopts,
+                       &rtcname, &suspend, &opt_seconds, &opt_time);
 
        /* this is the default
        if (opt & RTCWAKE_OPT_AUTO)