2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

Fix warnings in when build with --enable-buffer-useinline

sockaddr.c:147:49: error: pointer targets in passing argument 2 of ‘isc__buffer_putmem’ differ in signedness
    rdata.c:1780:30: error: pointer targets in passing argument 2 of ‘isc__buffer_putmem’ differ in signedness
This commit is contained in:
Michal Nowak
2020-08-18 18:27:29 +02:00
parent f036e0bc7f
commit dd425254a7
2 changed files with 6 additions and 2 deletions

View File

@@ -144,7 +144,10 @@ isc_sockaddr_totext(const isc_sockaddr_t *sockaddr, isc_buffer_t *target) {
return (ISC_R_NOSPACE);
}
isc_buffer_putmem(target, sockaddr->type.sunix.sun_path, plen);
isc_buffer_putmem(
target,
(const unsigned char *)sockaddr->type.sunix.sun_path,
plen);
/*
* Null terminate after used region.