diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2017-01-12 23:16:36 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2017-01-12 23:16:36 +0000 |
commit | bf6d072124a960d3b84ae39cd15c5aeca2e41c88 (patch) | |
tree | c082150f61e67d929b1baca2f5c6104fe959ccac /src/libs6/s6lock_update.c | |
parent | 81c7a02ec870ef3dba9f8b8f8dbecbd119e5ea47 (diff) | |
download | s6-bf6d072124a960d3b84ae39cd15c5aeca2e41c88.tar.xz |
Types fix, first pass
Diffstat (limited to 'src/libs6/s6lock_update.c')
-rw-r--r-- | src/libs6/s6lock_update.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libs6/s6lock_update.c b/src/libs6/s6lock_update.c index 6e6a2a0..a56c276 100644 --- a/src/libs6/s6lock_update.c +++ b/src/libs6/s6lock_update.c @@ -1,5 +1,6 @@ /* ISC license. */ +#include <stdint.h> #include <errno.h> #include <skalibs/error.h> #include <skalibs/uint16.h> @@ -13,19 +14,19 @@ static int msghandler (unixmessage_t const *m, void *context) { s6lock_t *a = (s6lock_t *)context ; char *p ; - uint16 id ; + uint16_t id ; if (m->len != 3 || m->nfds) return (errno = EPROTO, 0) ; uint16_unpack_big(m->s, &id) ; p = GENSETDYN_P(char, &a->data, id) ; if (*p == EBUSY) *p = m->s[2] ; else if (error_isagain(*p)) *p = m->s[2] ? m->s[2] : EBUSY ; else return (errno = EPROTO, 0) ; - if (!genalloc_append(uint16, &a->list, &id)) return 0 ; + if (!genalloc_append(uint16_t, &a->list, &id)) return 0 ; return 1 ; } int s6lock_update (s6lock_t *a) { - genalloc_setlen(uint16, &a->list, 0) ; + genalloc_setlen(uint16_t, &a->list, 0) ; return skaclient_update(&a->connection, &msghandler, a) ; } |