mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-07-23 23:33:01 +00:00
Fix compile warnings for const correctness
Commit 6e37b1a3a25004d3df5867de49fff6b3fc9c4f04 modifies several net calls to take a (const char *) parameter instead of (char *), but in some cases the modified functions call other functions taking (char *). The end result is warnings about discarding the const qualifier. This patch fixes these other function signatures. Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
This commit is contained in:
parent
ede16ea32d
commit
d7fb9bcfb2
5 changed files with 8 additions and 7 deletions
|
@ -162,7 +162,7 @@ int at91emac_write(at91_emac_t *at91mac, unsigned char addr,
|
|||
|
||||
#if defined(CONFIG_MII) || defined(CONFIG_CMD_MII)
|
||||
|
||||
at91_emac_t *get_emacbase_by_name(char *devname)
|
||||
at91_emac_t *get_emacbase_by_name(const char *devname)
|
||||
{
|
||||
struct eth_device *netdev;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue