diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-10-08 12:49:22 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-10-08 12:49:22 +0000 |
commit | 1385899416a4396385ad421ae1f532be7103738a (patch) | |
tree | fc4d14a910593d1235318bb36abe5e9f72d2039e /util-linux/losetup.c | |
parent | 5625415085e68ac5e150f54e685417c866620d76 (diff) | |
download | busybox-w32-1385899416a4396385ad421ae1f532be7103738a.tar.gz busybox-w32-1385899416a4396385ad421ae1f532be7103738a.tar.bz2 busybox-w32-1385899416a4396385ad421ae1f532be7103738a.zip |
attempt to regularize atoi mess.
Diffstat (limited to 'util-linux/losetup.c')
-rw-r--r-- | util-linux/losetup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util-linux/losetup.c b/util-linux/losetup.c index 8882ee4da..c7eb85a91 100644 --- a/util-linux/losetup.c +++ b/util-linux/losetup.c | |||
@@ -16,7 +16,7 @@ int losetup_main(int argc, char **argv) | |||
16 | { | 16 | { |
17 | unsigned opt; | 17 | unsigned opt; |
18 | char *opt_o; | 18 | char *opt_o; |
19 | int offset = 0; | 19 | unsigned long long offset = 0; |
20 | 20 | ||
21 | opt = getopt32(argc, argv, "do:", &opt_o); | 21 | opt = getopt32(argc, argv, "do:", &opt_o); |
22 | argc -= optind; | 22 | argc -= optind; |
@@ -35,7 +35,7 @@ int losetup_main(int argc, char **argv) | |||
35 | } | 35 | } |
36 | 36 | ||
37 | if (opt == 0x2) // -o | 37 | if (opt == 0x2) // -o |
38 | offset = bb_xparse_number(opt_o, NULL); | 38 | offset = xatoull(opt_o); |
39 | 39 | ||
40 | /* -o or no option */ | 40 | /* -o or no option */ |
41 | 41 | ||