summaryrefslogtreecommitdiff
path: root/lib/ip.c
diff options
context:
space:
mode:
authorOndrej Zajicek (work) <santiago@crfreenet.org>2015-11-24 15:21:11 +0100
committerOndrej Zajicek (work) <santiago@crfreenet.org>2015-11-24 15:21:11 +0100
commit90f78507f4a13673ccf0ba7c786b43d9e882fca7 (patch)
treee7881d0b56a45609514a4aa9f75873fcad813f0e /lib/ip.c
parent8eb8e546dc8cc647fcfa4a3a17dfa8ab36b00958 (diff)
parentad27615760e2795da3efe5e97c0e888281d5ca59 (diff)
Merge branch 'master' into rip-new
Diffstat (limited to 'lib/ip.c')
-rw-r--r--lib/ip.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/ip.c b/lib/ip.c
index 3dc8919a..2050d19e 100644
--- a/lib/ip.c
+++ b/lib/ip.c
@@ -233,7 +233,7 @@ ip6_ntop(ip6_addr a, char *b)
}
int
-ip4_pton(char *a, ip4_addr *o)
+ip4_pton(const char *a, ip4_addr *o)
{
int i;
unsigned long int l;
@@ -258,11 +258,11 @@ ip4_pton(char *a, ip4_addr *o)
}
int
-ip6_pton(char *a, ip6_addr *o)
+ip6_pton(const char *a, ip6_addr *o)
{
u16 words[8];
int i, j, k, l, hfil;
- char *start;
+ const char *start;
if (a[0] == ':') /* Leading :: */
{