diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2021-09-02 19:11:11 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2021-09-02 19:11:11 +0000 |
commit | d9488baa63351cafd237f5af15018ea5898ec0bc (patch) | |
tree | 9704741988528c28a8cb51c1e60fae56d712ab6d /src/libs6/s6lock_update.c | |
parent | 208dc53700866d413efaf7374ebd9dbaeaee6551 (diff) | |
download | s6-d9488baa63351cafd237f5af15018ea5898ec0bc.tar.xz |
Pass errno as unsigned char
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/libs6/s6lock_update.c')
-rw-r--r-- | src/libs6/s6lock_update.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libs6/s6lock_update.c b/src/libs6/s6lock_update.c index 4866e7c..e345230 100644 --- a/src/libs6/s6lock_update.c +++ b/src/libs6/s6lock_update.c @@ -18,11 +18,11 @@ static int msghandler (struct iovec const *v, void *context) { s6lock_t *a = (s6lock_t *)context ; char const *s = v->iov_base ; - char *p ; + unsigned char *p ; uint16_t id ; if (v->iov_len != 3) return (errno = EPROTO, 0) ; uint16_unpack_big(s, &id) ; - p = GENSETDYN_P(char, &a->data, id) ; + p = GENSETDYN_P(unsigned char, &a->data, id) ; if (*p == EBUSY) *p = s[2] ; else if (error_isagain(*p)) *p = s[2] ? s[2] : EBUSY ; else return (errno = EPROTO, 0) ; |