datapath-windows: Add braces to fix error C2275.
authorSairam Venugopal <vsairam@vmware.com>
Fri, 22 Apr 2016 05:44:26 +0000 (22:44 -0700)
committerBen Pfaff <blp@ovn.org>
Fri, 22 Apr 2016 15:24:43 +0000 (08:24 -0700)
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>
datapath-windows/ovsext/Conntrack.c

index 6391ce8..544fd51 100644 (file)
@@ -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);