summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2015-02-23 14:03:04 +0100
committerTobias Klauser <tklauser@distanz.ch>2015-02-23 14:04:16 +0100
commit0b3d76f37f260013603432d3cfe67ea244418ceb (patch)
tree5bfdbe6dce79b1ef46d90f31d6499b7ecfd81514
parentce75021f844084bf1c3105bd2478a13dc96a12a1 (diff)
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 <tklauser@distanz.ch>
-rw-r--r--proto.h2
1 files changed, 1 insertions, 1 deletions
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 */