struct bottomhalf.mdmstate is of type error_t (*)(int *state). Fixes -Wincompatible-pointer-types, which is a hard error by default in GCC 14. --- term/hurdio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/term/hurdio.c b/term/hurdio.c
index c6e14a4a..eab59b72 100644
--- a/term/hurdio.c
+++ b/term/hurdio.c
@@ -614,7 +614,7 @@ hurdio_mdmctl (int how, int bits)
static int
-hurdio_mdmstate (void)
+hurdio_mdmstate (int *state)
{
int oldbits;
--
2.44.0
