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 /coreutils/date.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 'coreutils/date.c')
-rw-r--r-- | coreutils/date.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/coreutils/date.c b/coreutils/date.c index 2a82e0413..74e99665d 100644 --- a/coreutils/date.c +++ b/coreutils/date.c | |||
@@ -42,7 +42,7 @@ int date_main(int argc, char **argv) | |||
42 | { | 42 | { |
43 | time_t tm; | 43 | time_t tm; |
44 | struct tm tm_time; | 44 | struct tm tm_time; |
45 | unsigned long opt; | 45 | unsigned opt; |
46 | int ifmt = -1; | 46 | int ifmt = -1; |
47 | char *date_str = NULL; | 47 | char *date_str = NULL; |
48 | char *date_fmt = NULL; | 48 | char *date_fmt = NULL; |
@@ -50,9 +50,9 @@ int date_main(int argc, char **argv) | |||
50 | char *isofmt_arg; | 50 | char *isofmt_arg; |
51 | char *hintfmt_arg; | 51 | char *hintfmt_arg; |
52 | 52 | ||
53 | bb_opt_complementally = "?:d--s:s--d" | 53 | opt_complementary = "?:d--s:s--d" |
54 | USE_FEATURE_DATE_ISOFMT(":R--I:I--R"); | 54 | USE_FEATURE_DATE_ISOFMT(":R--I:I--R"); |
55 | opt = bb_getopt_ulflags(argc, argv, "Rs:ud:r:" | 55 | opt = getopt32(argc, argv, "Rs:ud:r:" |
56 | USE_FEATURE_DATE_ISOFMT("I::D:"), | 56 | USE_FEATURE_DATE_ISOFMT("I::D:"), |
57 | &date_str, &date_str, &filename | 57 | &date_str, &date_str, &filename |
58 | USE_FEATURE_DATE_ISOFMT(, &isofmt_arg, &hintfmt_arg)); | 58 | USE_FEATURE_DATE_ISOFMT(, &isofmt_arg, &hintfmt_arg)); |