aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-04-10 02:09:40 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-04-10 02:09:40 +0000
commitfcc6347976ded376c9effe3b9fb216b00b2140cb (patch)
treec21dd5062aeaafead13d6fa66b196f7f3fb4be46 /networking/udhcp
parentb3f39f0cfa766344cd1faec3de3c8812184a237f (diff)
downloadbusybox-fcc6347976ded376c9effe3b9fb216b00b2140cb.tar.gz
udhcp,ipcalc: simple code shrink (Nico Erfurth <masta AT perlgolf.de>)
function old new delta ipcalc_main 609 610 +1 read_staticlease 102 85 -17 ether_aton 17 - -17
Diffstat (limited to 'networking/udhcp')
-rw-r--r--networking/udhcp/files.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/networking/udhcp/files.c b/networking/udhcp/files.c
index 043a95bb0..e0e8b12c3 100644
--- a/networking/udhcp/files.c
+++ b/networking/udhcp/files.c
@@ -26,13 +26,11 @@ static int read_ip(const char *line, void *arg)
static int read_mac(const char *line, void *arg)
{
- uint8_t *mac_bytes = arg;
struct ether_addr *temp_ether_addr;
- temp_ether_addr = ether_aton(line);
+ temp_ether_addr = ether_aton_r(line, (struct ether_addr *)arg);
if (temp_ether_addr == NULL)
return 0;
- memcpy(mac_bytes, temp_ether_addr, 6);
return 1;
}