diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-10-03 21:00:06 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-10-03 21:00:06 +0000 |
commit | 67b23e6043d8e2b30b0bf3bc105b8583c2a26db5 (patch) | |
tree | edb58560b444979051b42ab7f0c0c718f7459754 /networking/ftpgetput.c | |
parent | 40920825d59874cf285390434486e88c8498d2d8 (diff) | |
download | busybox-w32-67b23e6043d8e2b30b0bf3bc105b8583c2a26db5.tar.gz busybox-w32-67b23e6043d8e2b30b0bf3bc105b8583c2a26db5.tar.bz2 busybox-w32-67b23e6043d8e2b30b0bf3bc105b8583c2a26db5.zip |
getopt_ulflags -> getopt32.
It is impossible to formulate sane ABI based on
size of ulong because it can be 32-bit or 64-bit.
Basically it means that you cannot portably use
more that 32 option chars in one call anyway...
Make it explicit.
Diffstat (limited to 'networking/ftpgetput.c')
-rw-r--r-- | networking/ftpgetput.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/networking/ftpgetput.c b/networking/ftpgetput.c index 453cce571..25b7f1427 100644 --- a/networking/ftpgetput.c +++ b/networking/ftpgetput.c | |||
@@ -275,7 +275,7 @@ static const struct option ftpgetput_long_options[] = { | |||
275 | int ftpgetput_main(int argc, char **argv) | 275 | int ftpgetput_main(int argc, char **argv) |
276 | { | 276 | { |
277 | /* content-length of the file */ | 277 | /* content-length of the file */ |
278 | unsigned long opt; | 278 | unsigned opt; |
279 | char *port = "ftp"; | 279 | char *port = "ftp"; |
280 | 280 | ||
281 | /* socket to ftp server */ | 281 | /* socket to ftp server */ |
@@ -305,9 +305,9 @@ int ftpgetput_main(int argc, char **argv) | |||
305 | * Decipher the command line | 305 | * Decipher the command line |
306 | */ | 306 | */ |
307 | if (ENABLE_FEATURE_FTPGETPUT_LONG_OPTIONS) | 307 | if (ENABLE_FEATURE_FTPGETPUT_LONG_OPTIONS) |
308 | bb_applet_long_options = ftpgetput_long_options; | 308 | applet_long_options = ftpgetput_long_options; |
309 | 309 | ||
310 | opt = bb_getopt_ulflags(argc, argv, "cvu:p:P:", &server->user, &server->password, &port); | 310 | opt = getopt32(argc, argv, "cvu:p:P:", &server->user, &server->password, &port); |
311 | 311 | ||
312 | /* Process the non-option command line arguments */ | 312 | /* Process the non-option command line arguments */ |
313 | if (argc - optind != 3) { | 313 | if (argc - optind != 3) { |