mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-17 12:41:32 +00:00
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>
This commit is contained in:
parent
a6616efb23
commit
a0bc44e68e
1 changed files with 1 additions and 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
|
||||
|
|
Loading…
Add table
Reference in a new issue