summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2021-09-02 17:34:44 +0000
committerLaurent Bercot <ska@appnovation.com>2021-09-02 17:34:44 +0000
commit478b6ee2ed027dbee4ebf153ce5cf0759a1d39d5 (patch)
treed6e927c337a6de8139bcc16ea07ab8bdc267b551
parentbddb0bff603b3ff18121af143567571f21022009 (diff)
downloads6-dns-478b6ee2ed027dbee4ebf153ce5cf0759a1d39d5.tar.xz
Pass errno as unsigned char
Signed-off-by: Laurent Bercot <ska@appnovation.com>
-rw-r--r--src/skadns/skadns_update.c2
1 files changed, 1 insertions, 1 deletions
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 ;
}