aboutsummaryrefslogtreecommitdiff
path: root/term/devio.c
diff options
context:
space:
mode:
authorFlavio Cruz <flaviocruz@gmail.com>2023-03-18 23:18:11 -0400
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-04-03 00:22:08 +0200
commit0209b2c932994e9ca55d39d98a83ea02aacd1332 (patch)
treef8778cca656943ee36193b49a7727557ba82319b /term/devio.c
parent6f3d68bc8b46bdc7b0f5f43918744d99746672a2 (diff)
downloadhurd-0209b2c932994e9ca55d39d98a83ea02aacd1332.tar.gz
hurd-0209b2c932994e9ca55d39d98a83ea02aacd1332.tar.bz2
hurd-0209b2c932994e9ca55d39d98a83ea02aacd1332.zip
Modernize code by removing use of old style definitions.
Also add -Werror=old-style-definition to enforce new code. Message-Id: <ZBZ+8xf7GHy2RT/h@jupiter.tail36e24.ts.net>
Diffstat (limited to 'term/devio.c')
-rw-r--r--term/devio.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/term/devio.c b/term/devio.c
index 621ec937..6024acc2 100644
--- a/term/devio.c
+++ b/term/devio.c
@@ -262,7 +262,7 @@ bogus_speed_to_real_speed (int bspeed)
/* If there are characters on the output queue and no
pending output requests, then send them. */
static error_t
-devio_start_output ()
+devio_start_output (void)
{
char *cp;
int size;
@@ -395,21 +395,21 @@ device_read_reply_inband (mach_port_t replypt,
}
static error_t
-devio_set_break ()
+devio_set_break (void)
{
device_set_status (phys_device, TTY_SET_BREAK, 0, 0);
return 0;
}
static error_t
-devio_clear_break ()
+devio_clear_break (void)
{
device_set_status (phys_device, TTY_CLEAR_BREAK, 0, 0);
return 0;
}
static error_t
-devio_abandon_physical_output ()
+devio_abandon_physical_output (void)
{
int val = D_WRITE;
@@ -429,7 +429,7 @@ devio_abandon_physical_output ()
}
static error_t
-devio_suspend_physical_output ()
+devio_suspend_physical_output (void)
{
if (!output_stopped)
{
@@ -440,13 +440,13 @@ devio_suspend_physical_output ()
}
static error_t
-devio_notice_input_flushed ()
+devio_notice_input_flushed (void)
{
return 0;
}
static int
-devio_pending_output_size ()
+devio_pending_output_size (void)
{
/* Unfortunately, there's no way to get the amount back from Mach
that has actually been written from this... */
@@ -455,7 +455,7 @@ devio_pending_output_size ()
/* Do this the first time the device is to be opened */
static error_t
-initial_open ()
+initial_open (void)
{
error_t err;
@@ -492,7 +492,7 @@ initial_open ()
}
static error_t
-devio_desert_dtr ()
+devio_desert_dtr (void)
{
int bits;
@@ -506,7 +506,7 @@ devio_desert_dtr ()
}
static error_t
-devio_assert_dtr ()
+devio_assert_dtr (void)
{
error_t err;