diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-01-13 17:29:46 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-01-13 17:29:46 +0000 |
commit | 5a62284972a46896cfa7364492caaef10cb83b6a (patch) | |
tree | c9a6fb1d2bc612376b49f658b1f2b674d2252ede | |
parent | 26ea0b7f167a3960de6ef0076828d135e6a684d0 (diff) | |
download | busybox-w32-5a62284972a46896cfa7364492caaef10cb83b6a.tar.gz busybox-w32-5a62284972a46896cfa7364492caaef10cb83b6a.tar.bz2 busybox-w32-5a62284972a46896cfa7364492caaef10cb83b6a.zip |
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().
-rw-r--r-- | util-linux/losetup.c | 2 |
1 files changed, 1 insertions, 1 deletions
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: | |||
39 | bb_perror_msg_and_die("%s",argv[optind]); | 39 | bb_perror_msg_and_die("%s",argv[optind]); |
40 | 40 | ||
41 | case 'o': | 41 | case 'o': |
42 | offset = bb_xparse_number (optarg, NULL); | 42 | offset = atol(optarg); |
43 | /* Fall through to do the losetup */ | 43 | /* Fall through to do the losetup */ |
44 | case -1: | 44 | case -1: |
45 | /* losetup takes two argument:, loop_device and file */ | 45 | /* losetup takes two argument:, loop_device and file */ |