projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't use designated struct member initializers in code compiled outside of Linux.
[openvswitch]
/
lib
/
vconn-unix.c
diff --git
a/lib/vconn-unix.c
b/lib/vconn-unix.c
index a321b3ceac37b900a3e67f1d4d686197d8212506..1dcba262a9756a88e72e73d9b75420ecbec8c3c2 100644
(file)
--- a/
lib/vconn-unix.c
+++ b/
lib/vconn-unix.c
@@
-82,8
+82,14
@@
unix_open(const char *name, char *suffix, struct vconn **vconnp)
}
struct vconn_class unix_vconn_class = {
}
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. */
};
\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 = {
}
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 */
};
};