diff options
author | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2015-11-24 13:52:26 +0100 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2015-11-24 13:52:26 +0100 |
commit | e422ca0f292d08a873deacdbffbb6c6cbd79f88a (patch) | |
tree | 09bd32db472addf4fd7a1f497892f95e1c4cb858 /lib/ip.c | |
parent | 5126380beace4e39578f005fe115917b8e8b8ff3 (diff) |
Some consts for function arguments
Patch from Pavel Tvrdik
Diffstat (limited to 'lib/ip.c')
-rw-r--r-- | lib/ip.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 :: */ { |