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 /archival/dpkg_deb.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 'archival/dpkg_deb.c')
-rw-r--r-- | archival/dpkg_deb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/archival/dpkg_deb.c b/archival/dpkg_deb.c index ce65e219a..80a5f3250 100644 --- a/archival/dpkg_deb.c +++ b/archival/dpkg_deb.c | |||
@@ -18,7 +18,7 @@ int dpkg_deb_main(int argc, char **argv) | |||
18 | archive_handle_t *ar_archive; | 18 | archive_handle_t *ar_archive; |
19 | archive_handle_t *tar_archive; | 19 | archive_handle_t *tar_archive; |
20 | llist_t *control_tar_llist = NULL; | 20 | llist_t *control_tar_llist = NULL; |
21 | unsigned long opt; | 21 | unsigned opt; |
22 | char *extract_dir = NULL; | 22 | char *extract_dir = NULL; |
23 | short argcount = 1; | 23 | short argcount = 1; |
24 | 24 | ||
@@ -40,8 +40,8 @@ int dpkg_deb_main(int argc, char **argv) | |||
40 | llist_add_to(&control_tar_llist, "control.tar.bz2"); | 40 | llist_add_to(&control_tar_llist, "control.tar.bz2"); |
41 | #endif | 41 | #endif |
42 | 42 | ||
43 | bb_opt_complementally = "?c--efXx:e--cfXx:f--ceXx:X--cefx:x--cefX"; | 43 | opt_complementary = "?c--efXx:e--cfXx:f--ceXx:X--cefx:x--cefX"; |
44 | opt = bb_getopt_ulflags(argc, argv, "cefXx"); | 44 | opt = getopt32(argc, argv, "cefXx"); |
45 | 45 | ||
46 | if (opt & DPKG_DEB_OPT_CONTENTS) { | 46 | if (opt & DPKG_DEB_OPT_CONTENTS) { |
47 | tar_archive->action_header = header_verbose_list; | 47 | tar_archive->action_header = header_verbose_list; |