summaryrefslogtreecommitdiff
path: root/src/libs6/s6lockd.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2021-09-02 19:11:11 +0000
committerLaurent Bercot <ska@appnovation.com>2021-09-02 19:11:11 +0000
commitd9488baa63351cafd237f5af15018ea5898ec0bc (patch)
tree9704741988528c28a8cb51c1e60fae56d712ab6d /src/libs6/s6lockd.c
parent208dc53700866d413efaf7374ebd9dbaeaee6551 (diff)
downloads6-d9488baa63351cafd237f5af15018ea5898ec0bc.tar.xz
Pass errno as unsigned char
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/libs6/s6lockd.c')
-rw-r--r--src/libs6/s6lockd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libs6/s6lockd.c b/src/libs6/s6lockd.c
index 8724019..285fb47 100644
--- a/src/libs6/s6lockd.c
+++ b/src/libs6/s6lockd.c
@@ -56,7 +56,7 @@ static void cleanup (void)
genalloc_setlen(s6lockio_t, &a, 0) ;
}
-static void trig (uint16_t id, char e)
+static void trig (uint16_t id, unsigned char e)
{
char pack[3] ;
uint16_pack_big(pack, id) ;
@@ -68,9 +68,9 @@ static void trig (uint16_t id, char e)
}
}
-static void answer (char c)
+static void answer (unsigned char c)
{
- if (!textmessage_put(textmessage_sender_1, &c, 1))
+ if (!textmessage_put(textmessage_sender_1, (char *)&c, 1))
{
cleanup() ;
strerr_diefu1sys(111, "textmessage_put") ;