diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-11-27 14:43:21 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-11-27 14:43:21 +0000 |
commit | d686a045c8134d3a42fa5cc6b2e09118e08d603f (patch) | |
tree | 38f509fc9556f68f758c77b06b480cc33b2725eb /procps | |
parent | 8a0a83d503a7971895254efa9e79cf15ba1850d4 (diff) | |
download | busybox-d686a045c8134d3a42fa5cc6b2e09118e08d603f.tar.gz |
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.c | 3 |
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; } |