summaryrefslogtreecommitdiffstats
path: root/extensions/libip6t_ipv6header.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_ipv6header.c
parente1639b0bc28420ca01d733749c8db16d5a3fbd0c (diff)
extensions: const annotations
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'extensions/libip6t_ipv6header.c')
-rw-r--r--extensions/libip6t_ipv6header.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/extensions/libip6t_ipv6header.c b/extensions/libip6t_ipv6header.c
index fca6f323..00d5d5b4 100644
--- a/extensions/libip6t_ipv6header.c
+++ b/extensions/libip6t_ipv6header.c
@@ -61,13 +61,13 @@ static const struct numflag chain_flags[] = {
{ IPPROTO_RAW, MASK_PROTO },
};
-static char *
+static const char *
proto_to_name(uint8_t proto, int nolookup)
{
unsigned int i;
if (proto && !nolookup) {
- struct protoent *pent = getprotobynumber(proto);
+ const struct protoent *pent = getprotobynumber(proto);
if (pent)
return pent->p_name;
}
@@ -83,7 +83,7 @@ static uint16_t
name_to_proto(const char *s)
{
unsigned int proto=0;
- struct protoent *pent;
+ const struct protoent *pent;
if ((pent = getprotobyname(s)))
proto = pent->p_proto;