this applet needlessly big! TODO: bb_getopt_ulflags()
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Fri, 13 Jan 2006 17:29:46 +0000 (17:29 -0000)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Fri, 13 Jan 2006 17:29:46 +0000 (17:29 -0000)
- use atol for the offset, which is always in bytes. Small step in eventually dropping bb_xparse_number().

util-linux/losetup.c

index 44721bd..24639ad 100644 (file)
@@ -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 */