From 58bfaba061db3361e1b34fbae53bed3463ffd4ac Mon Sep 17 00:00:00 2001 From: Shashank Ram Date: Thu, 15 Jun 2017 12:46:51 -0700 Subject: datapath-windows: Define NAT_ACTION enum correctly The existing code throws a warning when compiled with the Windows 10 SDK: 'typedef ': ignored on left of 'NAT_ACTION' when no variable is declared Signed-off-by: Shashank Ram Acked-by: Nithin Raju > Acked-by: Sairam Venugopal Acked-by: Alin Gabriel Serdean Signed-off-by: Gurucharan Shetty --- datapath-windows/ovsext/Conntrack.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'datapath-windows/ovsext/Conntrack.h') diff --git a/datapath-windows/ovsext/Conntrack.h b/datapath-windows/ovsext/Conntrack.h index fcdd96eef..04ca2994b 100644 --- a/datapath-windows/ovsext/Conntrack.h +++ b/datapath-windows/ovsext/Conntrack.h @@ -69,14 +69,14 @@ typedef struct MD_LABELS { struct ovs_key_ct_labels mask; } MD_LABELS; -typedef enum NAT_ACTION { +typedef enum _NAT_ACTION { NAT_ACTION_NONE = 0, NAT_ACTION_REVERSE = 1 << 0, NAT_ACTION_SRC = 1 << 1, NAT_ACTION_SRC_PORT = 1 << 2, NAT_ACTION_DST = 1 << 3, NAT_ACTION_DST_PORT = 1 << 4, -}; +} NAT_ACTION; typedef struct _OVS_CT_KEY { struct ct_endpoint src; -- cgit v1.2.1