flow: Fix MSVC compile errors.
authorBen Pfaff <blp@nicira.com>
Sun, 30 Aug 2015 14:40:31 +0000 (07:40 -0700)
committerBen Pfaff <blp@nicira.com>
Mon, 31 Aug 2015 19:56:09 +0000 (12:56 -0700)
commitaba5d6dd52532d55d654e8b069c1710d77a99beb
treea365ac620b5516a0cc17da9533c7ee508934f87b
parent572e54faff70760f4bfe4a7cffc9553e6743199e
flow: Fix MSVC compile errors.

This fixes some MSVC build errors introduced by commit 74ff3298c
(userspace: Define and use struct eth_addr.)

MSVC doesn't like the change in 'const' between function declaration and
definition: it reports "formal parameter 2 different from declaration" for
each of the functions in flow.h corrected by this (commit.  I think it's
technically wrong about that, standards-wise.)

MSVC doesn't like an empty-brace initializer.  (I think it's technically
right about that, standards-wise.)

This commit attempts to fix both problems, but I have not tested it with
MSVC.

CC: Jarno Rajahalme <jrajahalme@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Nithin Raju <nithin@vmware.com>
Tested-by: Nithin Raju <nithin@vmware.com>
lib/flow.c
lib/flow.h