diff options
author | aldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-01-13 17:29:46 +0000 |
---|---|---|
committer | aldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-01-13 17:29:46 +0000 |
commit | 326926e928a02faf9b8c3db83ff86b98c5e45224 (patch) | |
tree | c9a6fb1d2bc612376b49f658b1f2b674d2252ede /util-linux | |
parent | 89363acb67565d70c4b04fea14c8fc69b3887975 (diff) | |
download | busybox-w32-326926e928a02faf9b8c3db83ff86b98c5e45224.tar.gz busybox-w32-326926e928a02faf9b8c3db83ff86b98c5e45224.tar.bz2 busybox-w32-326926e928a02faf9b8c3db83ff86b98c5e45224.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().
git-svn-id: svn://busybox.net/trunk/busybox@13269 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'util-linux')
-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 */ |