libbb: make trim() return pointer to terminating NUL
authorDenys Vlasenko <vda.linux@googlemail.com>
Sat, 5 Aug 2017 15:50:35 +0000 (17:50 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sat, 5 Aug 2017 15:50:35 +0000 (17:50 +0200)
commit20077c1429915b2c223e4d179a033f2b1806872c
tree76c89e23adc5bb529e310d9e25e7016f6d699645
parent9cf89cdf84fb20154088145980b676d2b28fc55d
libbb: make trim() return pointer to terminating NUL

function                                             old     new   delta
trim                                                  80      90     +10
angle_address                                         56      50      -6
sysctl_main                                          282     273      -9
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/3 up/down: +10/-15)           Total:  -5 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
include/libbb.h
libbb/trim.c
mailutils/sendmail.c
miscutils/lsscsi.c
procps/sysctl.c