summaryrefslogtreecommitdiff
path: root/networking/udhcp
diff options
context:
space:
mode:
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 043a95b..e0e8b12 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;
}