From 435115d4fb9c3ed47d225d74346501b8d8b98363 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Mon, 14 Jun 2010 20:17:08 +0000 Subject: [PATCH] Use ip_addr_set_zero instead of memset(0) --- src/core/ipv4/autoip.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/ipv4/autoip.c b/src/core/ipv4/autoip.c index 4a02d73a..33a5fa20 100644 --- a/src/core/ipv4/autoip.c +++ b/src/core/ipv4/autoip.c @@ -308,7 +308,7 @@ autoip_start(struct netif *netif) ("autoip_start(): could not allocate autoip\n")); return ERR_MEM; } - memset( autoip, 0, sizeof(struct autoip)); + memset(autoip, 0, sizeof(struct autoip)); /* store this AutoIP client in the netif */ netif->autoip = autoip; LWIP_DEBUGF(AUTOIP_DEBUG | LWIP_DBG_TRACE, ("autoip_start(): allocated autoip")); @@ -316,7 +316,7 @@ autoip_start(struct netif *netif) autoip->state = AUTOIP_STATE_OFF; autoip->ttw = 0; autoip->sent_num = 0; - memset(&autoip->llipaddr, 0, sizeof(ip_addr_t)); + ip_addr_set_zero(&autoip->llipaddr); autoip->lastconflict = 0; }