net: fix typo in arp clean up
authorMike Frysinger <vapier@gentoo.org>
Tue, 10 Jul 2012 00:41:50 +0000 (00:41 +0000)
committerJoe Hershberger <joe.hershberger@ni.com>
Tue, 10 Jul 2012 15:14:56 +0000 (10:14 -0500)
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>
net/arp.c

index bac4cab5efa55153c14c620b0be47598a82b05f4..8e1d2edd6207a43e4ad16a5d42a3aad8147427ce 100644 (file)
--- 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