summaryrefslogtreecommitdiff
path: root/proto_tcp.c
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 /proto_tcp.c
parent3d84a7208988ad641599271d5bfde078c2fc9b4c (diff)
lookup: Return const char * from all lookup functions
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'proto_tcp.c')
-rw-r--r--proto_tcp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/proto_tcp.c b/proto_tcp.c
index 6f2ab14..4b37e07 100644
--- a/proto_tcp.c
+++ b/proto_tcp.c
@@ -64,7 +64,7 @@ static void tcp(struct pkt_buff *pkt)
{
struct tcphdr *tcp = (struct tcphdr *) pkt_pull(pkt, sizeof(*tcp));
uint16_t src, dest;
- char *src_name, *dest_name;
+ const char *src_name, *dest_name;
bool v = false;
if (tcp == NULL)
@@ -110,7 +110,7 @@ static void tcp_less(struct pkt_buff *pkt)
{
struct tcphdr *tcp = (struct tcphdr *) pkt_pull(pkt, sizeof(*tcp));
uint16_t src, dest;
- char *src_name, *dest_name;
+ const char *src_name, *dest_name;
if (tcp == NULL)
return;