net/netdev/netdev_register.c: Eliminate a newly introduced warning.
This commit is contained in:
parent
b00a2e5c54
commit
4b92f71a82
@ -253,7 +253,7 @@ static int get_ifindex(void)
|
||||
|
||||
int netdev_register(FAR struct net_driver_s *dev, enum net_lltype_e lltype)
|
||||
{
|
||||
FAR const char devfmt_str[IFNAMSIZ];
|
||||
FAR char devfmt_str[IFNAMSIZ];
|
||||
FAR const char *devfmt;
|
||||
int devnum;
|
||||
#ifdef CONFIG_NETDEV_IFINDEX
|
||||
@ -381,7 +381,7 @@ int netdev_register(FAR struct net_driver_s *dev, enum net_lltype_e lltype)
|
||||
* string.
|
||||
*/
|
||||
|
||||
devfmt = devfmt_str;
|
||||
devfmt = (FAR const char *)devfmt_str;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_NET_LOOPBACK
|
||||
|
Loading…
Reference in New Issue
Block a user