ofp-util: Reduce scope of variables in ofputil_encode_flow_mod()
authorSimon Horman <horms@verge.net.au>
Mon, 30 Jul 2012 02:03:02 +0000 (11:03 +0900)
committerBen Pfaff <blp@nicira.com>
Tue, 31 Jul 2012 04:43:33 +0000 (21:43 -0700)
commit3f192f2330cf2630c98b587e7fc5cd93165c5b48
treef4d15c52e0dfc619235b53c8b4ab957f9c72701e
parentd299965a175df682c90fd6e0e08000d53ad09764
ofp-util: Reduce scope of variables in ofputil_encode_flow_mod()

Reduce scope of per-protocol variables in ofputil_encode_flow_mod()

These variables are only needed in one of the cases covered by the switch
statement and will increase in number as more cases (protocols) are
supported.

Signed-off-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/ofp-util.c