[syslinux:lwip] undiif: correct bogus dprintf() statement
syslinux-bot for H. Peter Anvin
hpa at zytor.com
Sat Dec 17 21:19:32 PST 2011
Commit-ID: 8a761944b0f4cf5bf88c9dafa9d8711c115166c2
Gitweb: http://www.syslinux.org/commit/8a761944b0f4cf5bf88c9dafa9d8711c115166c2
Author: H. Peter Anvin <hpa at zytor.com>
AuthorDate: Sat, 1 Oct 2011 17:17:47 -0700
Committer: H. Peter Anvin <hpa at zytor.com>
CommitDate: Sat, 1 Oct 2011 17:17:47 -0700
undiif: correct bogus dprintf() statement
Signed-off-by: H. Peter Anvin <hpa at zytor.com>
---
core/lwip/src/netif/undiif.c | 24 ++++++++++++------------
1 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/core/lwip/src/netif/undiif.c b/core/lwip/src/netif/undiif.c
index 6d75a58..ea999cf 100644
--- a/core/lwip/src/netif/undiif.c
+++ b/core/lwip/src/netif/undiif.c
@@ -1347,18 +1347,18 @@ int undiif_start(uint32_t ip, uint32_t netmask, uint32_t gw)
// This should be done *after* the threading system and receive thread
// have both been started.
dprintf("undi_netif: ip %d.%d.%d.%d netmask %d.%d.%d.%d gw %d.%d.%d.%d\n",
- ((uint8_t *)ip)[0],
- ((uint8_t *)ip)[1],
- ((uint8_t *)ip)[2],
- ((uint8_t *)ip)[3],
- ((uint8_t *)netmask)[0],
- ((uint8_t *)netmask)[1],
- ((uint8_t *)netmask)[2],
- ((uint8_t *)netmask)[3],
- ((uint8_t *)gw)[0],
- ((uint8_t *)gw)[1],
- ((uint8_t *)gw)[2],
- ((uint8_t *)gw)[3]);
+ ((uint8_t *)&ip)[0],
+ ((uint8_t *)&ip)[1],
+ ((uint8_t *)&ip)[2],
+ ((uint8_t *)&ip)[3],
+ ((uint8_t *)&netmask)[0],
+ ((uint8_t *)&netmask)[1],
+ ((uint8_t *)&netmask)[2],
+ ((uint8_t *)&netmask)[3],
+ ((uint8_t *)&gw)[0],
+ ((uint8_t *)&gw)[1],
+ ((uint8_t *)&gw)[2],
+ ((uint8_t *)&gw)[3]);
err = netifapi_netif_add(&undi_netif,
(struct ip_addr *)&ip, (struct ip_addr *)&netmask, (struct ip_addr *)&gw,
NULL, undiif_init, ip_input);
More information about the Syslinux-commits
mailing list