summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2014-09-09 14:50:43 +0200
committerTobias Klauser <tklauser@distanz.ch>2014-09-09 14:50:43 +0200
commitdd8ce9fc18f2ce5007883f0fc6885c41deafc1b7 (patch)
tree5efea6fc02aa6689566e0cab54c8d089467ce844
parente0a7ae85351de7ebc43af1fe5f04e650c6736201 (diff)
dissector: Don't re-initialize packet_types array
Both sparse and clang warn about the initializers overriding previous initialization of the packet_types array. Since every access of the packet_types array checks the value for NULL (the default value, since the array is static) and prints a "?" if it isNULL, we don't need the prior initialization with "?". Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
-rw-r--r--dissector.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/dissector.h b/dissector.h
index 8cb4234..01d1525 100644
--- a/dissector.h
+++ b/dissector.h
@@ -28,7 +28,6 @@
extern char *if_indextoname(unsigned ifindex, char *ifname);
static const char * const packet_types[256] = {
- [0 ... 255] = "?", /* Unknown */
[PACKET_HOST] = "<", /* Incoming */
[PACKET_BROADCAST] = "B", /* Broadcast */
[PACKET_MULTICAST] = "M", /* Multicast */