Don't use designated struct member initializers in code compiled outside of Linux.
authorBen Pfaff <blp@nicira.com>
Thu, 4 Sep 2008 20:28:28 +0000 (13:28 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 4 Sep 2008 20:53:27 +0000 (13:53 -0700)
Needed for partner builds.

lib/vconn-netlink.c
lib/vconn-ssl.c
lib/vconn-stream.c
lib/vconn-tcp.c
lib/vconn-unix.c

index 22a8f61f4634aef08476d57174a39fadd068d244..aabd01ba77c4765ad9d0b3d4f5b752bef3c5523e 100644 (file)
@@ -142,10 +142,12 @@ netlink_wait(struct vconn *vconn, enum vconn_wait_type wait)
 }
 
 struct vconn_class netlink_vconn_class = {
-    .name = "nl",
-    .open = netlink_open,
-    .close = netlink_close,
-    .recv = netlink_recv,
-    .send = netlink_send,
-    .wait = netlink_wait,
+    "nl",                       /* name */
+    netlink_open,               /* open */
+    netlink_close,              /* close */
+    NULL,                       /* connect */
+    NULL,                       /* accept */
+    netlink_recv,               /* recv */
+    netlink_send,               /* send */
+    netlink_wait,               /* wait */
 };
index 40bee797adbc5cac1fc647742f7ea65297ab45a5..fbf1a7149df16d5df4fdb3a4e4e88806a4a487c8 100644 (file)
@@ -652,13 +652,14 @@ ssl_wait(struct vconn *vconn, enum vconn_wait_type wait)
 }
 
 struct vconn_class ssl_vconn_class = {
-    .name = "ssl",
-    .open = ssl_open,
-    .close = ssl_close,
-    .connect = ssl_connect,
-    .recv = ssl_recv,
-    .send = ssl_send,
-    .wait = ssl_wait,
+    "ssl",                      /* name */
+    ssl_open,                   /* open */
+    ssl_close,                  /* close */
+    ssl_connect,                /* connect */
+    NULL,                       /* accept */
+    ssl_recv,                   /* recv */
+    ssl_send,                   /* send */
+    ssl_wait,                   /* wait */
 };
 \f
 /* Passive SSL. */
@@ -787,11 +788,14 @@ pssl_wait(struct vconn *vconn, enum vconn_wait_type wait)
 }
 
 struct vconn_class pssl_vconn_class = {
-    .name = "pssl",
-    .open = pssl_open,
-    .close = pssl_close,
-    .accept = pssl_accept,
-    .wait = pssl_wait,
+    "pssl",                     /* name */
+    pssl_open,                  /* open */
+    pssl_close,                 /* close */
+    NULL,                       /* connect */
+    pssl_accept,                /* accept */
+    NULL,                       /* recv */
+    NULL,                       /* send */
+    pssl_wait,                  /* wait */
 };
 \f
 /*
index 0f7220e2b22b0197b73feb199ec91ab0fa208847..83795097a8d1ff4227d9ab6b5467147c9ff542e5 100644 (file)
@@ -246,12 +246,14 @@ stream_wait(struct vconn *vconn, enum vconn_wait_type wait)
 }
 
 static struct vconn_class stream_vconn_class = {
-    .name = "stream",
-    .close = stream_close,
-    .connect = stream_connect,
-    .recv = stream_recv,
-    .send = stream_send,
-    .wait = stream_wait,
+    "stream",                   /* name */
+    NULL,                       /* open */
+    stream_close,               /* close */
+    stream_connect,             /* connect */
+    NULL,                       /* accept */
+    stream_recv,                /* recv */
+    stream_send,                /* send */
+    stream_wait,                /* wait */
 };
 \f
 /* Passive stream socket vconn. */
@@ -349,8 +351,12 @@ pstream_wait(struct vconn *vconn, enum vconn_wait_type wait)
 }
 
 static struct vconn_class pstream_vconn_class = {
-    .name = "pstream",
-    .close = pstream_close,
-    .accept = pstream_accept,
-    .wait = pstream_wait
+    "pstream",                  /* name */
+    NULL,                       /* open */
+    pstream_close,              /* close */
+    NULL,                       /* connect */
+    pstream_accept,             /* accept */
+    NULL,                       /* recv */
+    NULL,                       /* send */
+    pstream_wait                /* wait */
 };
index 4a798c5f3385b40731d8be8909b03addab2ee42a..3d336c467cd756cedce57718f1dadaa019a25ca1 100644 (file)
@@ -127,8 +127,14 @@ tcp_open(const char *name, char *suffix, struct vconn **vconnp)
 }
 
 struct vconn_class tcp_vconn_class = {
-    .name = "tcp",
-    .open = tcp_open,
+    "tcp",                      /* name */
+    tcp_open,                   /* open */
+    NULL,                       /* close */
+    NULL,                       /* connect */
+    NULL,                       /* accept */
+    NULL,                       /* recv */
+    NULL,                       /* send */
+    NULL,                       /* wait */
 };
 \f
 /* Passive TCP. */
@@ -189,7 +195,13 @@ ptcp_accept(int fd, const struct sockaddr *sa, size_t sa_len,
 }
 
 struct vconn_class ptcp_vconn_class = {
-    .name = "ptcp",
-    .open = ptcp_open,
+    "ptcp",                     /* name */
+    ptcp_open,                  /* open */
+    NULL,                       /* close */
+    NULL,                       /* connect */
+    NULL,                       /* accept */
+    NULL,                       /* recv */
+    NULL,                       /* send */
+    NULL,                       /* wait */
 };
 
index a321b3ceac37b900a3e67f1d4d686197d8212506..1dcba262a9756a88e72e73d9b75420ecbec8c3c2 100644 (file)
@@ -82,8 +82,14 @@ unix_open(const char *name, char *suffix, struct vconn **vconnp)
 }
 
 struct vconn_class unix_vconn_class = {
-    .name = "unix",
-    .open = unix_open,
+    "unix",                     /* name */
+    unix_open,                  /* open */
+    NULL,                       /* close */
+    NULL,                       /* connect */
+    NULL,                       /* accept */
+    NULL,                       /* recv */
+    NULL,                       /* send */
+    NULL,                       /* wait */
 };
 \f
 /* Passive UNIX socket. */
@@ -123,7 +129,13 @@ punix_accept(int fd, const struct sockaddr *sa, size_t sa_len,
 }
 
 struct vconn_class punix_vconn_class = {
-    .name = "punix",
-    .open = punix_open,
+    "punix",                    /* name */
+    punix_open,                 /* open */
+    NULL,                       /* close */
+    NULL,                       /* connect */
+    NULL,                       /* accept */
+    NULL,                       /* recv */
+    NULL,                       /* send */
+    NULL,                       /* wait */
 };