use gmtime_r() instead of gmtime()
authorDenys Vlasenko <vda.linux@googlemail.com>
Tue, 6 Mar 2018 17:11:47 +0000 (18:11 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Tue, 6 Mar 2018 17:11:47 +0000 (18:11 +0100)
commite1b1b7926975c3cd4313be0019212b1cf68fa529
tree31f9227004013462e899d383c1e7a0910f7157aa
parent33f7c8f200b6c3f7163dc89723ab67462688dccd
use gmtime_r() instead of gmtime()

This avoids pulling in gmtime's static buffer:

function                                             old     new   delta
svlogd_main                                         1401    1412     +11
send_headers                                         668     678     +10
gmtime                                                21       -     -21
------------------------------------------------------------------------------
(add/remove: 0/2 grow/shrink: 2/0 up/down: 21/-21)              Total: 0 bytes
   text    data     bss     dec     hex filename
 920221     555    5804  926580   e2374 busybox_old
 920221     555    5740  926516   e2334 busybox_unstripped
                   ^^^^

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/httpd.c
runit/svlogd.c
sysklogd/syslogd_and_logger.c