Remove warning in netif_add(): "converting from 's16' to 'u8_t': possible loss of data" (static variable netifnum)

This commit is contained in:
goldsimon 2007-03-26 17:19:12 +00:00
parent c9df03d1a9
commit 028d707077

View File

@ -68,7 +68,7 @@ netif_add(struct netif *netif, struct ip_addr *ipaddr, struct ip_addr *netmask,
err_t (* init)(struct netif *netif),
err_t (* input)(struct pbuf *p, struct netif *netif))
{
static s16_t netifnum = 0;
static u8_t netifnum = 0;
/* reset new interface configuration state */
netif->ip_addr.addr = 0;