* [U-Boot] [PATCH] net: fix typo in arp clean up
@ 2012-07-10 10:41 Mike Frysinger
2012-07-10 18:52 ` Joe Hershberger
0 siblings, 1 reply; 2+ messages in thread
From: Mike Frysinger @ 2012-07-10 10:41 UTC (permalink / raw)
To: u-boot
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 | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/net/arp.c b/net/arp.c
index bac4cab..8e1d2ed 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
--
1.7.7.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] [PATCH] net: fix typo in arp clean up
2012-07-10 10:41 [U-Boot] [PATCH] net: fix typo in arp clean up Mike Frysinger
@ 2012-07-10 18:52 ` Joe Hershberger
0 siblings, 0 replies; 2+ messages in thread
From: Joe Hershberger @ 2012-07-10 18:52 UTC (permalink / raw)
To: u-boot
Hi Mike,
On Tue, Jul 10, 2012 at 5:41 AM, Mike Frysinger <vapier@gentoo.org> wrote:
> 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>
> ---
Applied, thanks.
-Joe
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-07-10 18:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-10 10:41 [U-Boot] [PATCH] net: fix typo in arp clean up Mike Frysinger
2012-07-10 18:52 ` Joe Hershberger
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.