summaryrefslogtreecommitdiff
path: root/lookup.c
diff options
context:
space:
mode:
Diffstat (limited to 'lookup.c')
-rw-r--r--lookup.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lookup.c b/lookup.c
index 516ca7c..eb5a45f 100644
--- a/lookup.c
+++ b/lookup.c
@@ -127,7 +127,7 @@ void lookup_cleanup(enum lookup_type which)
lookup_initialized[which] = false;
}
-static inline char *__lookup_inline(unsigned int id, struct hash_table *tbl)
+static inline const char *__lookup_inline(unsigned int id, struct hash_table *tbl)
{
struct lookup_entry *entry = lookup_hash(id, tbl);
@@ -137,22 +137,22 @@ static inline char *__lookup_inline(unsigned int id, struct hash_table *tbl)
return (entry && id == entry->id ? entry->str : NULL);
}
-char *lookup_ether_type(unsigned int id)
+const char *lookup_ether_type(unsigned int id)
{
return __lookup_inline(id, &lookup_tables[LT_ETHERTYPES]);
}
-char *lookup_port_udp(unsigned int id)
+const char *lookup_port_udp(unsigned int id)
{
return __lookup_inline(id, &lookup_tables[LT_PORTS_UDP]);
}
-char *lookup_port_tcp(unsigned int id)
+const char *lookup_port_tcp(unsigned int id)
{
return __lookup_inline(id, &lookup_tables[LT_PORTS_TCP]);
}
-char *lookup_vendor(unsigned int id)
+const char *lookup_vendor(unsigned int id)
{
return __lookup_inline(id, &lookup_tables[LT_OUI]);
}