Use ip_addr_set_zero instead of memset(0)

This commit is contained in:
goldsimon 2010-06-14 20:17:08 +00:00
parent 24d823dae6
commit 435115d4fb

View File

@ -316,7 +316,7 @@ autoip_start(struct netif *netif)
autoip->state = AUTOIP_STATE_OFF; autoip->state = AUTOIP_STATE_OFF;
autoip->ttw = 0; autoip->ttw = 0;
autoip->sent_num = 0; autoip->sent_num = 0;
memset(&autoip->llipaddr, 0, sizeof(ip_addr_t)); ip_addr_set_zero(&autoip->llipaddr);
autoip->lastconflict = 0; autoip->lastconflict = 0;
} }