summaryrefslogtreecommitdiff
path: root/src/socket.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/socket.h')
-rw-r--r--src/socket.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/socket.h b/src/socket.h
index 5aa5f2783c..2067eb4254 100644
--- a/src/socket.h
+++ b/src/socket.h
@@ -62,9 +62,7 @@ typedef enum SocketType {
_SOCKET_FIFO_INVALID = -1
} SocketType;
-typedef struct SocketPort SocketPort;
-
-struct SocketPort {
+typedef struct SocketPort {
SocketType type;
int fd;
@@ -72,8 +70,8 @@ struct SocketPort {
char *path;
Watch fd_watch;
- LIST_FIELDS(SocketPort, port);
-};
+ LIST_FIELDS(struct SocketPort, port);
+} SocketPort;
struct Socket {
Meta meta;