busybox/networking/udhcp
Denys Vlasenko a953987e77 udhcpd: remove redundant code in send_offer()
static_lease_nip and lease pointer are canculated in the caller,
no need to calculate them again. lease_time_sec calculation
is also redundant: it is assigned to later, w/o being used
in between.

function                                             old     new   delta
udhcpd_main                                         1956    1925     -31

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-03-20 03:49:27 +01:00
..
arpping.c *: eliminate more aliasing warnings 2010-02-04 18:41:18 +01:00
clientpacket.c udhcp: remove support for some really old and odd options 2010-03-19 23:42:23 +01:00
clientsocket.c fix fallout from BSD patches 2009-07-10 18:37:06 +02:00
common.c udhcp: logging improvements, field and variable renames 2009-06-17 13:24:03 +02:00
common.h udhcp: logging improvements, field and variable renames 2009-06-17 13:24:03 +02:00
Config.in replace APP_xxDHCPxx with xxDHCPxx, it's more consistent with the rest 2009-12-11 02:21:10 +01:00
dhcpc.c udhcpc: fix bug 629: use bcast receive when we perform rebinding 2009-10-08 23:05:46 +02:00
dhcpc.h udhcp[cd]: fix aliasing warnings 2010-02-05 15:35:05 +01:00
dhcpd.c udhcpd: remove redundant code in send_offer() 2010-03-20 03:49:27 +01:00
dhcpd.h udhcp: move serverpacket.c into dhcpd.c, no other changes 2010-03-20 03:48:11 +01:00
dhcprelay.c udhcp: shorten mac len from 16 to 6 in lease file 2009-06-17 11:57:09 +02:00
domain_codec.c udhcp: dname_dec may return NULL, account for that case 2009-07-03 16:59:59 +02:00
dumpleases.c further work on unicodization 2010-01-30 23:16:21 +01:00
files.c udhcpd: fix a bug in add_lease where it was reading at [-1] 2009-07-07 14:59:30 +02:00
Kbuild udhcp: move serverpacket.c into dhcpd.c, no other changes 2010-03-20 03:48:11 +01:00
leases.c whitespace fixes 2010-01-25 13:39:24 +01:00
options.c udhcp: remove support for some really old and odd options 2010-03-19 23:42:23 +01:00
options.h udhcp: remove support for some really old and odd options 2010-03-19 23:42:23 +01:00
packet.c remove trailing whitespace 2009-07-15 20:02:19 +02:00
script.c udhcp: remove support for some really old and odd options 2010-03-19 23:42:23 +01:00
signalpipe.c *: use "can't" instead of "cannot" 2009-11-13 09:08:27 +01:00
socket.c Patches to enable FreeBSD build 2009-07-05 03:34:12 +02:00
static_leases.c udhcp: convert old-style logging in print_static_leases 2009-06-17 13:44:04 +02:00