summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2023-04-18 18:00:36 +0200
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2023-04-18 18:04:49 +0200
commitc7fd6445c6c4c1b36183bc043a06a5e17237c49f (patch)
treead5fcc996471c737d33604b9034297125ef18c92
parentf119045227af1e1a23f2727e5ba7ebe910eb6517 (diff)
downloadtcpdump-c7fd6445c6c4c1b36183bc043a06a5e17237c49f.tar.gz
RT6: Declare the struct tok srh_tlv_type "static"
This should avoid error like: ./print-rt6.c:36:18: error: no previous extern declaration for non-static variable 'srh_tlv_type' [-Werror,-Wmissing-variable-declarations] const struct tok srh_tlv_type[] = { ^ ./print-rt6.c:36:7: note: declare 'static' if the variable is not intended to be used outside of this translation unit const struct tok srh_tlv_type[] = { ^
-rw-r--r--print-rt6.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/print-rt6.c b/print-rt6.c
index 62db9a21..0478f382 100644
--- a/print-rt6.c
+++ b/print-rt6.c
@@ -33,7 +33,7 @@
#include "ip6.h"
-const struct tok srh_tlv_type[] = {
+static const struct tok srh_tlv_type[] = {
{ IPV6_SRH_TLV_PAD1, "Pad1"},
{ IPV6_SRH_TLV_PADN, "PadN"},
{ IPV6_SRH_TLV_HMAC, "HMAC"},