[ovs-dev] [PATCH] rconn: Prevent redefinition of 'MAX_MONITORS' in Windows.

Gurucharan Shetty shettyg at nicira.com
Tue Sep 9 20:23:00 UTC 2014


Windows already has a MAX_MONITORS defined in ddeml.h.

Signed-off-by: Gurucharan Shetty <gshetty at nicira.com>
---
 lib/rconn.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/rconn.c b/lib/rconn.c
index c9b68bb..5c28806 100644
--- a/lib/rconn.c
+++ b/lib/rconn.c
@@ -137,8 +137,8 @@ struct rconn {
     uint8_t dscp;
 
     /* Messages sent or received are copied to the monitor connections. */
-#define MAX_MONITORS 8
-    struct vconn *monitors[8];
+#define MAXIMUM_MONITORS 8
+    struct vconn *monitors[MAXIMUM_MONITORS];
     size_t n_monitors;
 
     uint32_t allowed_versions;
-- 
1.7.9.5




More information about the dev mailing list