From: Mike Frysinger Date: Tue, 10 Jul 2012 00:41:50 +0000 (+0000) Subject: net: fix typo in arp clean up X-Git-Tag: v2012.07-rc2~10^2~10 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a0bc44e68ef696ba48731aadf433f80315bdafa7;p=oweals%2Fu-boot.git 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 --- diff --git a/net/arp.c b/net/arp.c index bac4cab5ef..8e1d2edd62 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