From: Mike Frysinger Date: Wed, 20 Oct 2010 11:16:58 +0000 (-0400) Subject: string_to_ip: constify "s" arg X-Git-Tag: v2011.03-rc1~55^2~42 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=908c6b627f2c51f57db0dd3bff7b7577b14d0e71;p=u-boot string_to_ip: constify "s" arg Signed-off-by: Mike Frysinger --- diff --git a/include/net.h b/include/net.h index 5e3495bd75..95ef8ab83c 100644 --- a/include/net.h +++ b/include/net.h @@ -514,7 +514,7 @@ static inline int is_valid_ether_addr(const u8 *addr) extern void ip_to_string (IPaddr_t x, char *s); /* Convert a string to ip address */ -extern IPaddr_t string_to_ip(char *s); +extern IPaddr_t string_to_ip(const char *s); /* Convert a VLAN id to a string */ extern void VLAN_to_string (ushort x, char *s); diff --git a/lib/net_utils.c b/lib/net_utils.c index f03b098e9c..b425a68d91 100644 --- a/lib/net_utils.c +++ b/lib/net_utils.c @@ -28,7 +28,7 @@ #include -IPaddr_t string_to_ip(char *s) +IPaddr_t string_to_ip(const char *s) { IPaddr_t addr; char *e;