aboutsummaryrefslogtreecommitdiff
path: root/term
diff options
context:
space:
mode:
authorSergey Bugaev <bugaevc@gmail.com>2024-03-23 14:53:13 +0300
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2024-03-23 13:02:05 +0100
commit5d7055b305624d6e271e2fc57e67aa5b65039486 (patch)
treec1efebbcf89eb638f74691ce6bd9295cc62e5592 /term
parent64559905b30334fdae1b94b775a4a98ee0126d0c (diff)
downloadhurd-5d7055b305624d6e271e2fc57e67aa5b65039486.tar.gz
hurd-5d7055b305624d6e271e2fc57e67aa5b65039486.tar.bz2
hurd-5d7055b305624d6e271e2fc57e67aa5b65039486.zip
term: Fix function prototype
struct bottomhalf.mdmstate is of type error_t (*)(int *state). Fixes -Wincompatible-pointer-types, which is a hard error by default in GCC 14. Message-ID: <20240323115322.69075-1-bugaevc@gmail.com>
Diffstat (limited to 'term')
-rw-r--r--term/hurdio.c2
1 files changed, 1 insertions, 1 deletions
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;