aboutsummaryrefslogtreecommitdiff
path: root/procps
diff options
context:
space:
mode:
authorGravatar Denis Vlasenko <vda.linux@googlemail.com>2006-11-27 14:43:21 +0000
committerGravatar Denis Vlasenko <vda.linux@googlemail.com>2006-11-27 14:43:21 +0000
commitd686a045c8134d3a42fa5cc6b2e09118e08d603f (patch)
tree38f509fc9556f68f758c77b06b480cc33b2725eb /procps
parent8a0a83d503a7971895254efa9e79cf15ba1850d4 (diff)
downloadbusybox-d686a045c8134d3a42fa5cc6b2e09118e08d603f.tar.gz
busybox-d686a045c8134d3a42fa5cc6b2e09118e08d603f.tar.bz2
safe_strtoXX interface proved to be a bit unconvenient.
Remove it, introduce saner bb_strtoXX. Saved ~350 bytes.
Diffstat (limited to 'procps')
-rw-r--r--procps/renice.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/procps/renice.c b/procps/renice.c
index 65674a4ee..08e0dc264 100644
--- a/procps/renice.c
+++ b/procps/renice.c
@@ -87,7 +87,8 @@ int renice_main(int argc, char **argv)
}
who = p->pw_uid;
} else {
- if (safe_strtou(arg, &who)) {
+ who = bb_strtou(arg, NULL, 10);
+ if (errno) {
bb_error_msg("bad value: %s", arg);
goto HAD_ERROR;
}