summaryrefslogtreecommitdiff
path: root/lookup.h
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2015-11-16 09:07:54 +0100
committerTobias Klauser <tklauser@distanz.ch>2015-11-16 09:07:54 +0100
commit48493306d27a1e2f7750228a37c32e892ffbb310 (patch)
treead05f41259f07f695498c83e14aad95c6ab7c97c /lookup.h
parent3d84a7208988ad641599271d5bfde078c2fc9b4c (diff)
lookup: Return const char * from all lookup functions
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'lookup.h')
-rw-r--r--lookup.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/lookup.h b/lookup.h
index 57c43d6..38161b6 100644
--- a/lookup.h
+++ b/lookup.h
@@ -19,10 +19,10 @@ enum lookup_type {
extern void lookup_init(enum lookup_type which);
extern void lookup_cleanup(enum lookup_type which);
-extern char *lookup_port_udp(unsigned int id);
-extern char *lookup_port_tcp(unsigned int id);
-extern char *lookup_ether_type(unsigned int id);
-extern char *lookup_vendor(unsigned int id);
+extern const char *lookup_port_udp(unsigned int id);
+extern const char *lookup_port_tcp(unsigned int id);
+extern const char *lookup_ether_type(unsigned int id);
+extern const char *lookup_vendor(unsigned int id);
static inline const char *lookup_vendor_str(unsigned int id)
{