From: Justin Pettit Date: Thu, 10 Nov 2011 07:54:33 +0000 (-0800) Subject: flow: htons() zero initializers to make their size more clear. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb9457e201a0304ba23df574a1a9aea6d26b2753;p=openvswitch flow: htons() zero initializers to make their size more clear. --- diff --git a/lib/flow.c b/lib/flow.c index ec233bc9..8b03e76e 100644 --- a/lib/flow.c +++ b/lib/flow.c @@ -452,13 +452,13 @@ flow_zero_wildcards(struct flow *flow, const struct flow_wildcards *wildcards) } flow->vlan_tci &= wildcards->vlan_tci_mask; if (wc & FWW_DL_TYPE) { - flow->dl_type = 0; + flow->dl_type = htons(0); } if (wc & FWW_TP_SRC) { - flow->tp_src = 0; + flow->tp_src = htons(0); } if (wc & FWW_TP_DST) { - flow->tp_dst = 0; + flow->tp_dst = htons(0); } if (wc & FWW_DL_SRC) { memset(flow->dl_src, 0, sizeof flow->dl_src);