diff options
author | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-10-03 21:00:06 +0000 |
---|---|---|
committer | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-10-03 21:00:06 +0000 |
commit | 63adc7384791548741e3a2afbee1be40d99fe9d2 (patch) | |
tree | edb58560b444979051b42ab7f0c0c718f7459754 /archival/dpkg_deb.c | |
parent | 1fa12c6ebcb25e2924778bcbaae4bea1af7b7e6a (diff) | |
download | busybox-w32-63adc7384791548741e3a2afbee1be40d99fe9d2.tar.gz busybox-w32-63adc7384791548741e3a2afbee1be40d99fe9d2.tar.bz2 busybox-w32-63adc7384791548741e3a2afbee1be40d99fe9d2.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.
git-svn-id: svn://busybox.net/trunk/busybox@16305 69ca8d6d-28ef-0310-b511-8ec308f3f277
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; |