mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
string_to_ip: constify "s" arg
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
parent
2e3ef6e4e4
commit
908c6b627f
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
|
||||
#include <common.h>
|
||||
|
||||
IPaddr_t string_to_ip(char *s)
|
||||
IPaddr_t string_to_ip(const char *s)
|
||||
{
|
||||
IPaddr_t addr;
|
||||
char *e;
|
||||
|
|
Loading…
Reference in a new issue