diff options
author | Bernhard Reutner-Fischer | 2006-01-13 17:29:46 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer | 2006-01-13 17:29:46 +0000 |
commit | 5a62284972a46896cfa7364492caaef10cb83b6a (patch) | |
tree | c9a6fb1d2bc612376b49f658b1f2b674d2252ede /util-linux/losetup.c | |
parent | 26ea0b7f167a3960de6ef0076828d135e6a684d0 (diff) | |
download | busybox-5a62284972a46896cfa7364492caaef10cb83b6a.zip busybox-5a62284972a46896cfa7364492caaef10cb83b6a.tar.gz |
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().
Diffstat (limited to 'util-linux/losetup.c')
-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 44721bd..24639ad 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 */ |