X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fsocket.h;h=2067eb425428be24f67a288909534df4bed0db28;hp=5aa5f2783c0dd0dd9c3580abb2aa67bff1b7bce3;hb=01f78473b104d28db0fa813414092bc6358ae521;hpb=871d7de47c13ee6cd78b8eefdf9128be3c740ac0 diff --git a/src/socket.h b/src/socket.h index 5aa5f2783..2067eb425 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;