diff options
author | Denis Vlasenko | 2006-10-08 12:49:22 +0000 |
---|---|---|
committer | Denis Vlasenko | 2006-10-08 12:49:22 +0000 |
commit | 1385899416a4396385ad421ae1f532be7103738a (patch) | |
tree | fc4d14a910593d1235318bb36abe5e9f72d2039e /util-linux/losetup.c | |
parent | 5625415085e68ac5e150f54e685417c866620d76 (diff) | |
download | busybox-1385899416a4396385ad421ae1f532be7103738a.zip busybox-1385899416a4396385ad421ae1f532be7103738a.tar.gz |
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 8882ee4..c7eb85a 100644 --- a/util-linux/losetup.c +++ b/util-linux/losetup.c @@ -16,7 +16,7 @@ int losetup_main(int argc, char **argv) { unsigned opt; char *opt_o; - int offset = 0; + unsigned long long offset = 0; opt = getopt32(argc, argv, "do:", &opt_o); argc -= optind; @@ -35,7 +35,7 @@ int losetup_main(int argc, char **argv) } if (opt == 0x2) // -o - offset = bb_xparse_number(opt_o, NULL); + offset = xatoull(opt_o); /* -o or no option */ |