ofproto-dpif-xlate: Mark xcfgp and new_xcfg as static.
authorBen Pfaff <blp@nicira.com>
Wed, 28 May 2014 22:21:21 +0000 (15:21 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 28 May 2014 22:21:21 +0000 (15:21 -0700)
Found by sparse.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Ryan Wilson <wryan@nicira.com>
ofproto/ofproto-dpif-xlate.c

index c230216..068d54f 100644 (file)
@@ -304,8 +304,8 @@ struct xlate_cfg {
     struct hmap xbundles;
     struct hmap xports;
 };
-OVSRCU_TYPE(struct xlate_cfg *) xcfgp = OVSRCU_TYPE_INITIALIZER;
-struct xlate_cfg *new_xcfg = NULL;
+static OVSRCU_TYPE(struct xlate_cfg *) xcfgp = OVSRCU_TYPE_INITIALIZER;
+static struct xlate_cfg *new_xcfg = NULL;
 
 static bool may_receive(const struct xport *, struct xlate_ctx *);
 static void do_xlate_actions(const struct ofpact *, size_t ofpacts_len,