diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2015-02-23 14:03:04 +0100 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2015-02-23 14:04:16 +0100 |
commit | 0b3d76f37f260013603432d3cfe67ea244418ceb (patch) | |
tree | 5bfdbe6dce79b1ef46d90f31d6499b7ecfd81514 /proto.h | |
parent | ce75021f844084bf1c3105bd2478a13dc96a12a1 (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>
Diffstat (limited to 'proto.h')
-rw-r--r-- | proto.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 */ |