projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e3ef6e
)
string_to_ip: constify "s" arg
author
Mike Frysinger
<vapier@gentoo.org>
Wed, 20 Oct 2010 11:16:58 +0000
(07:16 -0400)
committer
Wolfgang Denk
<wd@denx.de>
Sun, 28 Nov 2010 20:56:39 +0000
(21:56 +0100)
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
include/net.h
patch
|
blob
|
history
lib/net_utils.c
patch
|
blob
|
history
diff --git
a/include/net.h
b/include/net.h
index 5e3495bd75c8207fa40de5f813d767470fd48158..95ef8ab83c3f0ac3c9f3f3a1cfb7b3125d9ca225 100644
(file)
--- 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(c
onst c
har *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 f03b098e9c1cca63a27ad0f49ff6585f5bffa0c1..b425a68d9138fcef3854912c308c71221453c519 100644
(file)
--- a/
lib/net_utils.c
+++ b/
lib/net_utils.c
@@
-28,7
+28,7
@@
#include <common.h>
-IPaddr_t string_to_ip(char *s)
+IPaddr_t string_to_ip(c
onst c
har *s)
{
IPaddr_t addr;
char *e;