mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +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
|
@ -117,7 +117,7 @@ extern void eth_try_another(int first_restart); /* Change the device */
|
|||
extern void eth_set_current(void); /* set nterface to ethcur var */
|
||||
#endif
|
||||
extern struct eth_device *eth_get_dev(void); /* get the current device MAC */
|
||||
extern struct eth_device *eth_get_dev_by_name(char *devname); /* get device */
|
||||
extern struct eth_device *eth_get_dev_by_name(const char *devname);
|
||||
extern struct eth_device *eth_get_dev_by_index(int index); /* get dev @ index */
|
||||
extern int eth_get_dev_index (void); /* get the device index */
|
||||
extern void eth_parse_enetaddr(const char *addr, uchar *enetaddr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue