summaryrefslogtreecommitdiff
path: root/src/libs6/s6lock_wait_and.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs6/s6lock_wait_and.c')
-rw-r--r--src/libs6/s6lock_wait_and.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libs6/s6lock_wait_and.c b/src/libs6/s6lock_wait_and.c
index 460cc07..30c7a43 100644
--- a/src/libs6/s6lock_wait_and.c
+++ b/src/libs6/s6lock_wait_and.c
@@ -1,14 +1,14 @@
/* ISC license. */
+#include <stdint.h>
#include <errno.h>
-#include <skalibs/uint16.h>
#include <skalibs/tai.h>
#include <skalibs/iopause.h>
#include <s6/s6lock.h>
-int s6lock_wait_and (s6lock_t *a, uint16 const *idlist, unsigned int n, tain_t const *deadline, tain_t *stamp)
+int s6lock_wait_and (s6lock_t *a, uint16_t const *idlist, unsigned int n, tain_t const *deadline, tain_t *stamp)
{
- iopause_fd x = { -1, IOPAUSE_READ, 0 } ;
+ iopause_fd x = { .fd = -1, .events = IOPAUSE_READ, .revents = 0 } ;
x.fd = s6lock_fd(a) ;
for (; n ; n--, idlist++)
{