summaryrefslogtreecommitdiff
path: root/term/ptyio.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/ptyio.c
parent6f3d68bc8b46bdc7b0f5f43918744d99746672a2 (diff)
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/ptyio.c')
-rw-r--r--term/ptyio.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/term/ptyio.c b/term/ptyio.c
index acd1015a..51f38078 100644
--- a/term/ptyio.c
+++ b/term/ptyio.c
@@ -125,7 +125,7 @@ pty_po_destroy_hook (struct trivfs_peropen *po)
}
static inline void
-wake_reader ()
+wake_reader (void)
{
if (pty_read_blocked)
{
@@ -139,7 +139,7 @@ wake_reader ()
/* Lower half for tty node */
static error_t
-ptyio_start_output ()
+ptyio_start_output (void)
{
if (packet_mode && output_stopped && (!(termflags & USER_OUTPUT_SUSP)))
{
@@ -152,7 +152,7 @@ ptyio_start_output ()
}
static error_t
-ptyio_abandon_physical_output ()
+ptyio_abandon_physical_output (void)
{
if (packet_mode)
{
@@ -163,7 +163,7 @@ ptyio_abandon_physical_output ()
}
static error_t
-ptyio_suspend_physical_output ()
+ptyio_suspend_physical_output (void)
{
if (packet_mode)
{
@@ -176,14 +176,14 @@ ptyio_suspend_physical_output ()
}
static int
-ptyio_pending_output_size ()
+ptyio_pending_output_size (void)
{
/* We don't maintain any pending output buffer separate from the outputq. */
return 0;
}
static error_t
-ptyio_notice_input_flushed ()
+ptyio_notice_input_flushed (void)
{
if (packet_mode)
{
@@ -194,14 +194,14 @@ ptyio_notice_input_flushed ()
}
static error_t
-ptyio_assert_dtr ()
+ptyio_assert_dtr (void)
{
dtr_on = 1;
return 0;
}
static error_t
-ptyio_desert_dtr ()
+ptyio_desert_dtr (void)
{
dtr_on = 0;
wake_reader ();
@@ -248,13 +248,13 @@ ptyio_set_bits (struct termios *state)
/* These do nothing. In BSD the associated ioctls get errors, but
I'd rather just ignore them. */
static error_t
-ptyio_set_break ()
+ptyio_set_break (void)
{
return 0;
}
static error_t
-ptyio_clear_break ()
+ptyio_clear_break (void)
{
return 0;
}