diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2011-05-07 00:05:24 +0200 |
---|---|---|
committer | Jan Engelhardt <jengelh@medozas.de> | 2011-05-09 00:13:13 +0200 |
commit | dd6e4b90b5b2dbc2bbaac5008e26949a18478197 (patch) | |
tree | ae4e8b4d069177c7143f64935aad4983237bfc5f /extensions/libip6t_rt.c | |
parent | e1639b0bc28420ca01d733749c8db16d5a3fbd0c (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.c | 4 |
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 * |