aboutsummaryrefslogtreecommitdiff
path: root/util-linux/readprofile.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-10-08 12:49:22 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-10-08 12:49:22 +0000
commit1385899416a4396385ad421ae1f532be7103738a (patch)
treefc4d14a910593d1235318bb36abe5e9f72d2039e /util-linux/readprofile.c
parent5625415085e68ac5e150f54e685417c866620d76 (diff)
downloadbusybox-w32-1385899416a4396385ad421ae1f532be7103738a.tar.gz
busybox-w32-1385899416a4396385ad421ae1f532be7103738a.tar.bz2
busybox-w32-1385899416a4396385ad421ae1f532be7103738a.zip
attempt to regularize atoi mess.
Diffstat (limited to 'util-linux/readprofile.c')
-rw-r--r--util-linux/readprofile.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/util-linux/readprofile.c b/util-linux/readprofile.c
index ff70bf79b..b368067ef 100644
--- a/util-linux/readprofile.c
+++ b/util-linux/readprofile.c
@@ -38,8 +38,8 @@
38#define S_LEN 128 38#define S_LEN 128
39 39
40/* These are the defaults */ 40/* These are the defaults */
41static const char defaultmap[]="/boot/System.map"; 41static const char defaultmap[] = "/boot/System.map";
42static const char defaultpro[]="/proc/profile"; 42static const char defaultpro[] = "/proc/profile";
43 43
44int readprofile_main(int argc, char **argv) 44int readprofile_main(int argc, char **argv)
45{ 45{
@@ -78,7 +78,7 @@ int readprofile_main(int argc, char **argv)
78 * not sizeof(int), the multiplier is not changed 78 * not sizeof(int), the multiplier is not changed
79 */ 79 */
80 if (mult) { 80 if (mult) {
81 multiplier = strtoul(mult, 0, 10); 81 multiplier = xatoi_u(mult);
82 to_write = sizeof(int); 82 to_write = sizeof(int);
83 } else { 83 } else {
84 multiplier = 0; 84 multiplier = 0;