summaryrefslogtreecommitdiff
path: root/lib/ip.h
diff options
context:
space:
mode:
authorOndrej Zajicek (work) <santiago@crfreenet.org>2015-11-24 13:52:26 +0100
committerOndrej Zajicek (work) <santiago@crfreenet.org>2015-11-24 13:52:26 +0100
commite422ca0f292d08a873deacdbffbb6c6cbd79f88a (patch)
tree09bd32db472addf4fd7a1f497892f95e1c4cb858 /lib/ip.h
parent5126380beace4e39578f005fe115917b8e8b8ff3 (diff)
Some consts for function arguments
Patch from Pavel Tvrdik
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 90bb7f8a..e33adc6e 100644
--- a/lib/ip.h
+++ b/lib/ip.h
@@ -446,8 +446,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