diff options
author | Mike Frysinger <vapier@gentoo.org> | 2008-02-15 05:33:22 +0300 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2008-02-15 05:33:22 +0300 |
commit | ea915363e747d4e42215016ceaef4b19e01baf55 (patch) | |
tree | f3fa45c8b434124c650b25410d57431afe9f2ea2 /util-linux/rtcwake.c | |
parent | 6b160e490d4d77596c1603d34d0a1ca0579a82da (diff) |
fix build failure when long opts are enabled
Diffstat (limited to 'util-linux/rtcwake.c')
-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) int fd; #if ENABLE_GETOPT_LONG - static const char rtcwake_longopts[] ALIGN1 = - "auto\0" No_argument "a" - "local\0" No_argument "l" - "utc\0" No_argument "u" - "device\0" Required_argument "d" - "mode\0" Required_argument "m" - "seconds\0" Required_argument "s" - "time\0" Required_argument "t" - ; - applet_long_options = rtcwake_longopts; - } + static const char rtcwake_longopts[] ALIGN1 = + "auto\0" No_argument "a" + "local\0" No_argument "l" + "utc\0" No_argument "u" + "device\0" Required_argument "d" + "mode\0" Required_argument "m" + "seconds\0" Required_argument "s" + "time\0" Required_argument "t" + ; + applet_long_options = rtcwake_longopts; #endif opt = getopt32(argv, "alud:m:s:t:", &rtcname, &suspend, &opt_seconds, &opt_time); |