summaryrefslogtreecommitdiff
path: root/lib/ip.h
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.h
parent8eb8e546dc8cc647fcfa4a3a17dfa8ab36b00958 (diff)
parentad27615760e2795da3efe5e97c0e888281d5ca59 (diff)
Merge branch 'master' into rip-new
Diffstat (limited to 'lib/ip.h')
-rw-r--r--lib/ip.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ip.h b/lib/ip.h
index 9ac5798a..5389c44a 100644
--- a/lib/ip.h
+++ b/lib/ip.h
@@ -453,8 +453,8 @@ static inline char * ip4_ntox(ip4_addr a, char *b)
static inline char * ip6_ntox(ip6_addr a, char *b)
{ return b + bsprintf(b, "%08x.%08x.%08x.%08x", _I0(a), _I1(a), _I2(a), _I3(a)); }
-int ip4_pton(char *a, ip4_addr *o);
-int ip6_pton(char *a, ip6_addr *o);
+int ip4_pton(const char *a, ip4_addr *o);
+int ip6_pton(const char *a, ip6_addr *o);
// XXXX these functions must be redesigned or removed
#ifdef IPV6