summaryrefslogtreecommitdiff
path: root/net/arp.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-07-10 00:41:50 +0000
committerJoe Hershberger <joe.hershberger@ni.com>2012-07-10 10:14:56 -0500
commita0bc44e68ef696ba48731aadf433f80315bdafa7 (patch)
tree83b46cfd2128705cd5539cea99d52bd7716a8c9a /net/arp.c
parenta6616efb23ccc753a4cf40283d014e0ee4ffa521 (diff)
downloadu-boot-imx-a0bc44e68ef696ba48731aadf433f80315bdafa7.zip
u-boot-imx-a0bc44e68ef696ba48731aadf433f80315bdafa7.tar.gz
u-boot-imx-a0bc44e68ef696ba48731aadf433f80315bdafa7.tar.bz2
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: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'net/arp.c')
-rw-r--r--net/arp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/arp.c b/net/arp.c
index bac4cab..8e1d2ed 100644
--- a/net/arp.c
+++ b/net/arp.c
@@ -194,7 +194,7 @@ void ArpReceive(struct ethernet_hdr *et, struct ip_udp_hdr *ip, int len)
#ifdef CONFIG_KEEP_SERVERADDR
if (NetServerIP == NetArpWaitPacketIP) {
char buf[20];
- sprintf(buf, "%pM", arp->ar_sha);
+ sprintf(buf, "%pM", &arp->ar_sha);
setenv("serveraddr", buf);
}
#endif