busybox/networking/udhcp
Denis Vlasenko fbd2918f5c udhcp: MAC_BCAST_ADDR and blank_chaddr are in fact constant, move to rodata.
a few global variables reduced to smallints
function                                             old     new   delta
add_lease                                             75     227    +152
static.blank_chaddr                                    -      16     +16
MAC_BCAST_ADDR                                         -       6      +6
sockfd                                                 4       8      +4
udhcp_run_script                                    1153    1155      +2
state                                                  8       5      -3
listen_mode                                            4       1      -3
perform_release                                      152     148      -4
fd                                                     8       4      -4
blank_chaddr                                          16       -     -16
udhcpc_main                                         2518    2497     -21
.rodata                                           131864  131832     -32
oldest_expired_lease                                  61       -     -61
clear_lease                                          127       -    -127
------------------------------------------------------------------------------
(add/remove: 2/3 grow/shrink: 3/6 up/down: 180/-271)          Total: -91 bytes
2007-04-07 01:05:47 +00:00
..
arpping.c random style fixes (extra spaces deleted) 2007-03-24 15:40:16 +00:00
clientpacket.c A bunch of defined(__GLIBC__) added. static-linking warning expanded 2006-12-18 21:49:06 +00:00
clientsocket.c - use xlisten/xsocket some more. Saves .25 kB 2006-12-19 16:31:09 +00:00
common.c udhcp: MAC_BCAST_ADDR and blank_chaddr are in fact constant, move to rodata. 2007-04-07 01:05:47 +00:00
common.h udhcp: MAC_BCAST_ADDR and blank_chaddr are in fact constant, move to rodata. 2007-04-07 01:05:47 +00:00
Config.in udhcp: optionally support RFC3397 (by Gabriel L. Somlo <somlo@cmu.edu>) 2007-02-27 21:15:08 +00:00
dhcpc.c udhcp: MAC_BCAST_ADDR and blank_chaddr are in fact constant, move to rodata. 2007-04-07 01:05:47 +00:00
dhcpc.h preparatory patch for -Wwrite-strings #2 2007-01-29 22:51:25 +00:00
dhcpd.c - sed -e "s/char[[:space:]]*\*[[:space:]]*argv\[\]/char **argv/g" 2007-04-04 20:52:03 +00:00
dhcpd.h udhcp: MAC_BCAST_ADDR and blank_chaddr are in fact constant, move to rodata. 2007-04-07 01:05:47 +00:00
dhcprelay.c suppress warnings about easch <applet>_main() having 2007-02-03 17:28:39 +00:00
domain_codec.c clean up accumulated whitespace damage 2007-03-07 09:35:43 +00:00
dumpleases.c - sed -e "s/char[[:space:]]*\*[[:space:]]*argv\[\]/char **argv/g" 2007-04-04 20:52:03 +00:00
files.c udhcp: optionally support RFC3397 (by Gabriel L. Somlo <somlo@cmu.edu>) 2007-02-27 21:15:08 +00:00
Kbuild Move udhcp to new NOMMU helpers. 2007-03-26 13:22:35 +00:00
leases.c udhcp: MAC_BCAST_ADDR and blank_chaddr are in fact constant, move to rodata. 2007-04-07 01:05:47 +00:00
options.c udhcp: optionally support RFC3397 (by Gabriel L. Somlo <somlo@cmu.edu>) 2007-02-27 21:15:08 +00:00
options.h udhcp: MAC_BCAST_ADDR and blank_chaddr are in fact constant, move to rodata. 2007-04-07 01:05:47 +00:00
packet.c udhcp: MAC_BCAST_ADDR and blank_chaddr are in fact constant, move to rodata. 2007-04-07 01:05:47 +00:00
script.c udhcp: MAC_BCAST_ADDR and blank_chaddr are in fact constant, move to rodata. 2007-04-07 01:05:47 +00:00
serverpacket.c udhcp: MAC_BCAST_ADDR and blank_chaddr are in fact constant, move to rodata. 2007-04-07 01:05:47 +00:00
signalpipe.c udhcp: fix indentation and style. 2006-11-18 19:51:32 +00:00
socket.c preparatory patch for -Wwrite-strings #2 2007-01-29 22:51:25 +00:00
static_leases.c httpd: slight reduction of #ifdef forest 2006-11-21 10:15:25 +00:00