rconn: Prevent redefinition of 'MAX_MONITORS' in Windows.
authorGurucharan Shetty <gshetty@nicira.com>
Tue, 9 Sep 2014 20:19:22 +0000 (13:19 -0700)
committerGurucharan Shetty <gshetty@nicira.com>
Wed, 10 Sep 2014 15:13:21 +0000 (08:13 -0700)
Windows already has a MAX_MONITORS defined in ddeml.h.

Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
lib/rconn.c

index c9b68bb..5c28806 100644 (file)
@@ -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;