summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2016-01-29 14:41:28 +0100
committerTobias Klauser <tklauser@distanz.ch>2016-01-29 14:42:25 +0100
commitf711e3c80a35e0762c719c0ef35fddfa35d92bbd (patch)
treeb89e09c60200afb5cba0b7337ec50dab6a06b60b
parent2ba202b8320cbec32520d347ac256c2b4caf0458 (diff)
trafgen: l2: Make needlessly global symbol eth_fields static
This fixes the following sparse warning: trafgen_l2.c:13:20: warning: symbol 'eth_fields' was not declared. Should it be static? Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
-rw-r--r--trafgen_l2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/trafgen_l2.c b/trafgen_l2.c
index e881b06..60da411 100644
--- a/trafgen_l2.c
+++ b/trafgen_l2.c
@@ -10,7 +10,7 @@
#include "trafgen_l2.h"
#include "trafgen_proto.h"
-struct proto_field eth_fields[] = {
+static struct proto_field eth_fields[] = {
{ .id = ETH_DST_ADDR, .len = 6, },
{ .id = ETH_SRC_ADDR, .len = 6, .offset = 6 },
{ .id = ETH_TYPE, .len = 2, .offset = 12 },