Minor code shrinks to udhcpd and ipcalc
Nico Erfurth
masta at perlgolf.de
Wed Apr 9 20:18:29 UTC 2008
Hi,
I did two minor code shrinks, patch is attached:
networking/udhcp/files.c:
- use ether_aton_r instead of ether_aton, saves a memcpy.
networking/ipcalc.c:
- Replace the tolower-loop with str_tolower
Nico
$ make bloatcheck
function old new delta
ipcalc_main 614 608 -6
read_staticlease 102 85 -17
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-23) Total: -23
bytes
text data bss dec hex filename
668219 2568 9856 680643 a62c3 busybox_old
668196 2568 9856 680620 a62ac busybox_unstripped
-------------- next part --------------
A non-text attachment was scrubbed...
Name: busybox-ipcalc-udhcp.patch
Type: text/x-patch
Size: 1179 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20080409/d935f56d/attachment-0002.bin
More information about the busybox
mailing list