From: Jesse Gross Date: Wed, 24 Nov 2010 17:31:49 +0000 (-0800) Subject: tunnels: Mark tnl_ops as static. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=15d90bb6c970eb1c96f8ffada260780a03660a8a;p=openvswitch tunnels: Mark tnl_ops as static. Both GRE and CAPWAP have tnl_ops that are only accessed inside of their respective files. Therefore mark these structures as static. Signed-off-by: Jesse Gross Acked-by: Ben Pfaff --- diff --git a/datapath/vport-capwap.c b/datapath/vport-capwap.c index f732657f..1c2d41b2 100644 --- a/datapath/vport-capwap.c +++ b/datapath/vport-capwap.c @@ -212,7 +212,7 @@ out: return 0; } -const struct tnl_ops capwap_tnl_ops = { +static const struct tnl_ops capwap_tnl_ops = { .tunnel_type = TNL_T_PROTO_CAPWAP, .ipproto = IPPROTO_UDP, .hdr_len = capwap_hdr_len, diff --git a/datapath/vport-gre.c b/datapath/vport-gre.c index fcf1edea..10ee63fe 100644 --- a/datapath/vport-gre.c +++ b/datapath/vport-gre.c @@ -332,7 +332,7 @@ error: return 0; } -const struct tnl_ops gre_tnl_ops = { +static const struct tnl_ops gre_tnl_ops = { .tunnel_type = TNL_T_PROTO_GRE, .ipproto = IPPROTO_GRE, .hdr_len = gre_hdr_len,