diff options
author | Mike Frysinger <vapier@gentoo.org> | 2012-07-10 00:41:50 +0000 |
---|---|---|
committer | Joe Hershberger <joe.hershberger@ni.com> | 2012-07-10 10:14:56 -0500 |
commit | a0bc44e68ef696ba48731aadf433f80315bdafa7 (patch) | |
tree | 83b46cfd2128705cd5539cea99d52bd7716a8c9a | |
parent | a6616efb23ccc753a4cf40283d014e0ee4ffa521 (diff) | |
download | u-boot-a0bc44e68ef696ba48731aadf433f80315bdafa7.tar.gz |
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>
-rw-r--r-- | net/arp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |