Skip to content
Snippets Groups Projects
Commit a0bc44e6 authored by Mike Frysinger's avatar Mike Frysinger Committed by Joe Hershberger
Browse files

net: fix typo in arp clean up


The clean up patch missed an &, so we end up passing an int rather than
a pointer to the sprintf function.

arp.c: In function 'ArpReceive':
arp.c:197: warning: format '%p' expects type 'void *', but argument 3 has type 'int'

Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
parent a6616efb
Branches
Tags
No related merge requests found
...@@ -194,7 +194,7 @@ void ArpReceive(struct ethernet_hdr *et, struct ip_udp_hdr *ip, int len) ...@@ -194,7 +194,7 @@ void ArpReceive(struct ethernet_hdr *et, struct ip_udp_hdr *ip, int len)
#ifdef CONFIG_KEEP_SERVERADDR #ifdef CONFIG_KEEP_SERVERADDR
if (NetServerIP == NetArpWaitPacketIP) { if (NetServerIP == NetArpWaitPacketIP) {
char buf[20]; char buf[20];
sprintf(buf, "%pM", arp->ar_sha); sprintf(buf, "%pM", &arp->ar_sha);
setenv("serveraddr", buf); setenv("serveraddr", buf);
} }
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment