summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBen Warren <biggerbadderben@gmail.com>2010-07-29 12:56:11 -0700
committerBen Warren <biggerbadderben@gmail.com>2010-08-09 11:52:30 -0700
commitd7fb9bcfb29a1cbdbda7006658e76c2d9da0f66f (patch)
tree3924a01a2169dffd939ca571be2ac66855b154b3 /include
parentede16ea32da7a37f892bf63dcb43c16118ba39d6 (diff)
downloadu-boot-imx-d7fb9bcfb29a1cbdbda7006658e76c2d9da0f66f.zip
u-boot-imx-d7fb9bcfb29a1cbdbda7006658e76c2d9da0f66f.tar.gz
u-boot-imx-d7fb9bcfb29a1cbdbda7006658e76c2d9da0f66f.tar.bz2
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>
Diffstat (limited to 'include')
-rw-r--r--include/net.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net.h b/include/net.h
index a180881..ab571eb 100644
--- a/include/net.h
+++ b/include/net.h
@@ -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);