9
0
Fork 0

net: constify eth_get_byname argument

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2014-02-27 15:57:49 +01:00
parent 93578fb233
commit 72dfc499c8
2 changed files with 2 additions and 2 deletions

View File

@ -404,7 +404,7 @@ typedef void rx_handler_f(void *ctx, char *packet, unsigned int len);
void eth_set_current(struct eth_device *eth);
struct eth_device *eth_get_current(void);
struct eth_device *eth_get_byname(char *name);
struct eth_device *eth_get_byname(const char *name);
/**
* net_receive - Pass a received packet from an ethernet driver to the protocol stack

View File

@ -144,7 +144,7 @@ struct eth_device * eth_get_current(void)
return eth_current;
}
struct eth_device *eth_get_byname(char *ethname)
struct eth_device *eth_get_byname(const char *ethname)
{
struct eth_device *edev;