summaryrefslogtreecommitdiffstats
path: root/extensions/libip6t_rt.c
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2011-05-07 00:05:24 +0200
committerJan Engelhardt <jengelh@medozas.de>2011-05-09 00:13:13 +0200
commitdd6e4b90b5b2dbc2bbaac5008e26949a18478197 (patch)
treeae4e8b4d069177c7143f64935aad4983237bfc5f /extensions/libip6t_rt.c
parente1639b0bc28420ca01d733749c8db16d5a3fbd0c (diff)
extensions: const annotations
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'extensions/libip6t_rt.c')
-rw-r--r--extensions/libip6t_rt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/libip6t_rt.c b/extensions/libip6t_rt.c
index 333350db..1c57dbd6 100644
--- a/extensions/libip6t_rt.c
+++ b/extensions/libip6t_rt.c
@@ -81,11 +81,11 @@ parse_rt_segsleft(const char *idstring, uint32_t *ids)
free(buffer);
}
-static char *
+static const char *
addr_to_numeric(const struct in6_addr *addrp)
{
static char buf[50+1];
- return (char *)inet_ntop(AF_INET6, addrp, buf, sizeof(buf));
+ return inet_ntop(AF_INET6, addrp, buf, sizeof(buf));
}
static struct in6_addr *