commit: 86898b45af380fd5de0095ed80e24ead98a27e47 Author: Alfred Wingate <parona <AT> protonmail <DOT> com> AuthorDate: Tue Feb 10 18:06:51 2026 +0000 Commit: David Seifert <soap <AT> gentoo <DOT> org> CommitDate: Tue Feb 10 18:06:51 2026 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=86898b45
net-analyzer/hydra: fix C23 Closes: https://bugs.gentoo.org/964434 Signed-off-by: David Seifert <soap <AT> gentoo.org> net-analyzer/hydra/files/hydra-9.6-c23.patch | 42 ++++++++++++++++++++++++++++ net-analyzer/hydra/hydra-9.6.ebuild | 3 +- 2 files changed, 44 insertions(+), 1 deletion(-) diff --git a/net-analyzer/hydra/files/hydra-9.6-c23.patch b/net-analyzer/hydra/files/hydra-9.6-c23.patch new file mode 100644 index 000000000000..b770510ceebf --- /dev/null +++ b/net-analyzer/hydra/files/hydra-9.6-c23.patch @@ -0,0 +1,42 @@ +From edf95af0ffcb3169d7c015d22f7a3036a645bb58 Mon Sep 17 00:00:00 2001 +From: Alfred Wingate <[email protected]> +Date: Sat, 15 Nov 2025 13:20:06 +0200 +Subject: [PATCH] Avoid warnings over incompatible pointer types + +g_timeout_add expects a function prototype with gpointer for data. It +isn't used here so its just NULL for all. + +Signed-off-by: Alfred Wingate <[email protected]> +--- a/hydra-gtk/src/callbacks.c ++++ b/hydra-gtk/src/callbacks.c +@@ -385,7 +385,7 @@ int hydra_get_options(char *options[]) { + return i; + } + +-int update_statusbar() { ++int update_statusbar(gpointer user_data) { + int i, j; + char *options[128]; + guint context_id; +@@ -544,7 +544,7 @@ int *popen_re_unbuffered(char *command) { + + hydra_pid = 0; + +- update_statusbar(); ++ update_statusbar(NULL); + + /* only allocate once */ + if (NULL == pfd) +--- a/hydra-gtk/src/callbacks.h ++++ b/hydra-gtk/src/callbacks.h +@@ -1,6 +1,6 @@ + #include <gtk/gtk.h> + +-int update_statusbar(); ++int update_statusbar(gpointer user_data); + + void on_quit1_activate(GtkMenuItem *menuitem, gpointer user_data); + +-- +2.51.2 + diff --git a/net-analyzer/hydra/hydra-9.6.ebuild b/net-analyzer/hydra/hydra-9.6.ebuild index 75537b65fa7c..a97a8a90f38c 100644 --- a/net-analyzer/hydra/hydra-9.6.ebuild +++ b/net-analyzer/hydra/hydra-9.6.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2025 Gentoo Authors +# Copyright 1999-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -48,6 +48,7 @@ BDEPEND="virtual/pkgconfig" PATCHES=( "${FILESDIR}"/${PN}-9.5-no-clobber-fortify-source.patch + "${FILESDIR}"/${PN}-9.6-c23.patch ) src_prepare() {
