ofproto: Don't shadow global variable name.
authorBen Pfaff <blp@nicira.com>
Thu, 4 Mar 2010 18:05:18 +0000 (10:05 -0800)
committerBen Pfaff <blp@nicira.com>
Thu, 4 Mar 2010 18:05:44 +0000 (10:05 -0800)
There was already a file scope variable named 'rl', so don't use it as
a local variable name too.

Reported-by: Jean Tourrilhes <jt@hpl.hp.com>
ofproto/ofproto.c

index 189aa2c827a96ee04eb2b02db178e5fd23064799..1211cb7085be41e81c8b3c7878e03493141bf95e 100644 (file)
@@ -808,8 +808,8 @@ ofproto_run1(struct ofproto *p)
                 /* Someone destroyed the datapath behind our back.  The caller
                  * better destroy us and give up, because we're just going to
                  * spin from here on out. */
-                static struct vlog_rate_limit rl = VLOG_RATE_LIMIT_INIT(1, 5);
-                VLOG_ERR_RL(&rl, "%s: datapath was destroyed externally",
+                static struct vlog_rate_limit rl2 = VLOG_RATE_LIMIT_INIT(1, 5);
+                VLOG_ERR_RL(&rl2, "%s: datapath was destroyed externally",
                             dpif_name(p->dpif));
                 return ENODEV;
             }