svn commit: trunk/busybox/util-linux
aldot at busybox.net
aldot at busybox.net
Fri Jan 13 17:29:48 UTC 2006
Author: aldot
Date: 2006-01-13 09:29:46 -0800 (Fri, 13 Jan 2006)
New Revision: 13269
Log:
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().
Modified:
trunk/busybox/util-linux/losetup.c
Changeset:
Modified: trunk/busybox/util-linux/losetup.c
===================================================================
--- trunk/busybox/util-linux/losetup.c 2006-01-13 16:25:03 UTC (rev 13268)
+++ trunk/busybox/util-linux/losetup.c 2006-01-13 17:29:46 UTC (rev 13269)
@@ -39,7 +39,7 @@
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 */
More information about the busybox-cvs
mailing list