From 478b6ee2ed027dbee4ebf153ce5cf0759a1d39d5 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Thu, 2 Sep 2021 17:34:44 +0000 Subject: Pass errno as unsigned char Signed-off-by: Laurent Bercot --- src/skadns/skadns_update.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/skadns/skadns_update.c') diff --git a/src/skadns/skadns_update.c b/src/skadns/skadns_update.c index b6dcca0..4e0f037 100644 --- a/src/skadns/skadns_update.c +++ b/src/skadns/skadns_update.c @@ -40,7 +40,7 @@ static int msghandler (struct iovec const *v, void *context) memcpy(p->data, s+3, v->iov_len-3) ; p->len = v->iov_len-3 ; } - p->status = s[2] ; + p->status = (unsigned char)s[2] ; genalloc_append(uint16_t, &a->list, &id) ; return 1 ; } -- cgit v1.2.3