diff options
Diffstat (limited to 'networking/udhcp/dumpleases.c')
-rw-r--r-- | networking/udhcp/dumpleases.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/networking/udhcp/dumpleases.c b/networking/udhcp/dumpleases.c index 95df7ea36..fb50d6888 100644 --- a/networking/udhcp/dumpleases.c +++ b/networking/udhcp/dumpleases.c | |||
@@ -24,14 +24,13 @@ int dumpleases_main(int argc, char **argv) | |||
24 | OPT_f = 0x4, // -f | 24 | OPT_f = 0x4, // -f |
25 | }; | 25 | }; |
26 | #if ENABLE_GETOPT_LONG | 26 | #if ENABLE_GETOPT_LONG |
27 | static const struct option options[] = { | 27 | static const char dumpleases_longopts[] = |
28 | { "absolute", no_argument, 0, 'a' }, | 28 | "absolute\0" No_argument "a" |
29 | { "remaining", no_argument, 0, 'r' }, | 29 | "remaining\0" No_argument "r" |
30 | { "file", required_argument, 0, 'f' }, | 30 | "file\0" Required_argument "f" |
31 | { NULL, 0, 0, 0 } | 31 | "\0"; |
32 | }; | ||
33 | 32 | ||
34 | applet_long_options = options; | 33 | applet_long_options = dumpleases_longopts; |
35 | #endif | 34 | #endif |
36 | opt_complementary = "=0:a--r:r--a"; | 35 | opt_complementary = "=0:a--r:r--a"; |
37 | opt = getopt32(argc, argv, "arf:", &file); | 36 | opt = getopt32(argc, argv, "arf:", &file); |