Skip to content

Commit

Permalink
net: fix typo in arp clean up
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
vapier authored and jhershbe committed Jul 10, 2012
1 parent a6616ef commit a0bc44e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/arp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a0bc44e

Please sign in to comment.