From 1385899416a4396385ad421ae1f532be7103738a Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sun, 8 Oct 2006 12:49:22 +0000 Subject: attempt to regularize atoi mess. --- util-linux/readprofile.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'util-linux/readprofile.c') 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 @@ #define S_LEN 128 /* These are the defaults */ -static const char defaultmap[]="/boot/System.map"; -static const char defaultpro[]="/proc/profile"; +static const char defaultmap[] = "/boot/System.map"; +static const char defaultpro[] = "/proc/profile"; int readprofile_main(int argc, char **argv) { @@ -78,7 +78,7 @@ int readprofile_main(int argc, char **argv) * not sizeof(int), the multiplier is not changed */ if (mult) { - multiplier = strtoul(mult, 0, 10); + multiplier = xatoi_u(mult); to_write = sizeof(int); } else { multiplier = 0; -- cgit v1.2.3