summaryrefslogtreecommitdiff
path: root/datapath-windows/ovsext/Conntrack.c
diff options
context:
space:
mode:
authorSairam Venugopal <vsairam@vmware.com>2016-04-21 22:44:26 -0700
committerBen Pfaff <blp@ovn.org>2016-04-22 08:24:43 -0700
commit7ab0b62b344758651676f55577acbc1a21e15110 (patch)
tree9612c769c1600a84de5ff2502fc63222f1564b2c /datapath-windows/ovsext/Conntrack.c
parent12c5f227f778a649b37a80558a96118ae6cd9529 (diff)
downloadopenvswitch-7ab0b62b344758651676f55577acbc1a21e15110.tar.gz
datapath-windows: Add braces to fix error C2275.
Add braces around the if statement to prevent Visual Studio from giving the "error C2275: illegal use of this type as an expresion". This happens when a variable is declared after a block. This error occurs on certain versions of compilers. Signed-off-by: Sairam Venugopal <vsairam@vmware.com> Acked-by: Nithin Raju <nithin@vmware.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'datapath-windows/ovsext/Conntrack.c')
-rw-r--r--datapath-windows/ovsext/Conntrack.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/datapath-windows/ovsext/Conntrack.c b/datapath-windows/ovsext/Conntrack.c
index 6391ce833..544fd513f 100644
--- a/datapath-windows/ovsext/Conntrack.c
+++ b/datapath-windows/ovsext/Conntrack.c
@@ -186,8 +186,9 @@ OvsCtEntryDelete(POVS_CT_ENTRY entry)
static __inline BOOLEAN
OvsCtEntryExpired(POVS_CT_ENTRY entry)
{
- if (entry == NULL)
+ if (entry == NULL) {
return TRUE;
+ }
UINT64 currentTime;
NdisGetCurrentSystemTime((LARGE_INTEGER *)&currentTime);