mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
net-dns/nsd: fix -Wincompatible-pointer-types
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
24
net-dns/nsd/files/nsd-4.6.1-incompatible-ptr-types.patch
Normal file
24
net-dns/nsd/files/nsd-4.6.1-incompatible-ptr-types.patch
Normal file
@@ -0,0 +1,24 @@
|
||||
https://github.com/NLnetLabs/nsd/issues/239
|
||||
https://github.com/NLnetLabs/nsd/commit/7162600301205c3c62a1695c0b29e079694b65ae
|
||||
|
||||
From 7162600301205c3c62a1695c0b29e079694b65ae Mon Sep 17 00:00:00 2001
|
||||
From: "W.C.A. Wijngaards" <wouter@nlnetlabs.nl>
|
||||
Date: Thu, 10 Nov 2022 09:47:59 +0100
|
||||
Subject: [PATCH] - Fix #239: -Wincompatible-pointer-types warning in remote.c.
|
||||
|
||||
--- a/remote.c
|
||||
+++ b/remote.c
|
||||
@@ -1212,8 +1212,11 @@ do_stats(struct daemon_remote* rc, int peek, struct rc_state* rs)
|
||||
/* force a reload */
|
||||
xfrd_set_reload_now(xfrd);
|
||||
#else
|
||||
+ RES res;
|
||||
+ res.ssl = rs->ssl;
|
||||
+ res.fd = rs->fd;
|
||||
(void)rc; (void)peek;
|
||||
- (void)ssl_printf(rs->ssl, "error no stats enabled at compile time\n");
|
||||
+ (void)ssl_printf(&res, "error no stats enabled at compile time\n");
|
||||
#endif /* BIND8_STATS */
|
||||
}
|
||||
|
||||
|
||||
@@ -51,6 +51,7 @@ BDEPEND="
|
||||
PATCHES=(
|
||||
# Fix the paths in the munin plugin to match our install
|
||||
"${FILESDIR}"/nsd_munin_.patch
|
||||
"${FILESDIR}"/${P}-incompatible-ptr-types.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
Reference in New Issue
Block a user