From: Bernhard Reutner-Fischer Date: Fri, 13 Jan 2006 17:29:46 +0000 (-0000) Subject: this applet needlessly big! TODO: bb_getopt_ulflags() X-Git-Tag: 1_1_0~348 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5a62284972a46896cfa7364492caaef10cb83b6a;p=oweals%2Fbusybox.git this applet needlessly big! TODO: bb_getopt_ulflags() - use atol for the offset, which is always in bytes. Small step in eventually dropping bb_xparse_number(). --- diff --git a/util-linux/losetup.c b/util-linux/losetup.c index 44721bd34..24639ad1c 100644 --- a/util-linux/losetup.c +++ b/util-linux/losetup.c @@ -39,7 +39,7 @@ die_failed: bb_perror_msg_and_die("%s",argv[optind]); case 'o': - offset = bb_xparse_number (optarg, NULL); + offset = atol(optarg); /* Fall through to do the losetup */ case -1: /* losetup takes two argument:, loop_device and file */