diff options
Diffstat (limited to 'networking/ftpgetput.c')
-rw-r--r-- | networking/ftpgetput.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/networking/ftpgetput.c b/networking/ftpgetput.c index 54b5f5a91..011fbac84 100644 --- a/networking/ftpgetput.c +++ b/networking/ftpgetput.c | |||
@@ -287,14 +287,13 @@ int ftp_send(ftp_host_info_t *server, FILE *control_stream, | |||
287 | #define FTPGETPUT_OPT_PORT 16 | 287 | #define FTPGETPUT_OPT_PORT 16 |
288 | 288 | ||
289 | #if ENABLE_FEATURE_FTPGETPUT_LONG_OPTIONS | 289 | #if ENABLE_FEATURE_FTPGETPUT_LONG_OPTIONS |
290 | static const struct option ftpgetput_long_options[] = { | 290 | static const char ftpgetput_longopts[] = |
291 | { "continue", 1, NULL, 'c' }, | 291 | "continue\0" Required_argument "c" |
292 | { "verbose", 0, NULL, 'v' }, | 292 | "verbose\0" No_argument "v" |
293 | { "username", 1, NULL, 'u' }, | 293 | "username\0" Required_argument "u" |
294 | { "password", 1, NULL, 'p' }, | 294 | "password\0" Required_argument "p" |
295 | { "port", 1, NULL, 'P' }, | 295 | "port\0" Required_argument "P" |
296 | { 0, 0, 0, 0 } | 296 | "\0"; |
297 | }; | ||
298 | #endif | 297 | #endif |
299 | 298 | ||
300 | int ftpgetput_main(int argc, char **argv); | 299 | int ftpgetput_main(int argc, char **argv); |
@@ -329,7 +328,7 @@ int ftpgetput_main(int argc, char **argv) | |||
329 | * Decipher the command line | 328 | * Decipher the command line |
330 | */ | 329 | */ |
331 | #if ENABLE_FEATURE_FTPGETPUT_LONG_OPTIONS | 330 | #if ENABLE_FEATURE_FTPGETPUT_LONG_OPTIONS |
332 | applet_long_options = ftpgetput_long_options; | 331 | applet_long_options = ftpgetput_longopts; |
333 | #endif | 332 | #endif |
334 | opt_complementary = "=3"; /* must have 3 params */ | 333 | opt_complementary = "=3"; /* must have 3 params */ |
335 | opt = getopt32(argc, argv, "cvu:p:P:", &server->user, &server->password, &port); | 334 | opt = getopt32(argc, argv, "cvu:p:P:", &server->user, &server->password, &port); |