attempt to regularize atoi mess.
[oweals/busybox.git] / util-linux / losetup.c
index 8882ee4da6cc906a4d3fdb06c48ada5ee20d8526..c7eb85a918b1b1bd34dab04f4612052c950e9719 100644 (file)
@@ -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 */