From 028d707077d63732ae643fe69b820797dfdef10b Mon Sep 17 00:00:00 2001 From: goldsimon Date: Mon, 26 Mar 2007 17:19:12 +0000 Subject: [PATCH] Remove warning in netif_add(): "converting from 's16' to 'u8_t': possible loss of data" (static variable netifnum) --- src/core/netif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/netif.c b/src/core/netif.c index 5ec5a283..b599497c 100644 --- a/src/core/netif.c +++ b/src/core/netif.c @@ -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;