diff options
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) ; |