Use initializers for struct ofputil_flow_mod instead of assignments.
authorBen Pfaff <blp@ovn.org>
Mon, 4 Jan 2016 19:36:14 +0000 (11:36 -0800)
committerBen Pfaff <blp@ovn.org>
Mon, 4 Jan 2016 19:36:14 +0000 (11:36 -0800)
commit39cc5c4adea207465e88d309dedf61990201301b
treebe85b60c8a728c72105ad53cd89007b46da09f78
parentd1a74e5e4ff438f805e94ead2440c5f3fa56ffdc
Use initializers for struct ofputil_flow_mod instead of assignments.

A few bugs have been fixed lately that were related to struct
ofputil_flow_mod not being fully initialized in a few places.  This commit
changes several pieces of code from using individual assignments to fields
in struct ofputil_flow_mod, to using whole initializers or assignments to
a whole struct.  This should help prevent similar problems in the future.

CC: Ilya Maximets <i.maximets@samsung.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Russell Bryant <russell@ovn.org>
lib/learning-switch.c
lib/ofp-parse.c
ofproto/ofproto-dpif.c
ofproto/ofproto.c
utilities/ovs-ofctl.c