From 0b3d76f37f260013603432d3cfe67ea244418ceb Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Mon, 23 Feb 2015 14:03:04 +0100 Subject: proto: Make protocol->key member const It's always initialized on declaration in the individual dissectors, so make it const. Signed-off-by: Tobias Klauser --- proto.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'proto.h') diff --git a/proto.h b/proto.h index 7a4b23a..227a748 100644 --- a/proto.h +++ b/proto.h @@ -17,7 +17,7 @@ struct pkt_buff; struct protocol { /* Needs to be filled out by user */ - unsigned int key; + const unsigned int key; void (*print_full)(struct pkt_buff *pkt); void (*print_less)(struct pkt_buff *pkt); /* Used by program logic */ -- cgit v1.2.3-54-g00ecf