diff options
author | Rasmus Villemoes <rasmus.villemoes@prevas.dk> | 2018-09-12 16:06:37 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2018-10-31 11:28:37 +0100 |
commit | 656ca7bdd992f6aabbdd5cadbac5241f6e1971a1 (patch) | |
tree | f2948b0bab0043df0eced761ad1d2499b0a37fca /klibc-utils | |
parent | 571e525a141a2de87b9c2ced485745e96418d921 (diff) | |
download | busybox-656ca7bdd992f6aabbdd5cadbac5241f6e1971a1.tar.gz |
libbb/u_signal_names.c: don't check errno after bb_strtou
Since we're comparing the return value to a smallish integer anyway, we
might as well use that bb_strtou() returns UINT_MAX for malformed
input. Referencing errno is kinda bloaty on glibc.
While NSIG is not in POSIX, we do already rely on it being defined,
compile-time const and smallish, since arrays in struct globals_misc are
defined in terms of it.
function old new delta
get_signum 312 286 -26
Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'klibc-utils')
0 files changed, 0 insertions, 0 deletions