From 84e0fb3f287864eca3a9322ef364b913f6a260bd Mon Sep 17 00:00:00 2001 From: Flavio Cruz Date: Sun, 25 Dec 2022 20:41:46 -0500 Subject: Fix some warnings with -Wmissing-prototypes. Marked some functions as static (private) as needed and added missing includes. This also revealed some dead code which was removed. Note that -Wmissing-prototypes is not enabled here since there is a bunch more warnings. Message-Id: --- device/chario.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'device/chario.c') diff --git a/device/chario.c b/device/chario.c index 0e9dd70b..64640981 100644 --- a/device/chario.c +++ b/device/chario.c @@ -230,7 +230,7 @@ boolean_t char_open_done( return TRUE; } -boolean_t tty_close_open_reply( +static boolean_t tty_close_open_reply( io_req_t ior) { ior->io_error = D_DEVICE_DOWN; @@ -366,7 +366,7 @@ boolean_t char_write_done( return TRUE; } -boolean_t tty_close_write_reply( +static boolean_t tty_close_write_reply( io_req_t ior) { ior->io_residual = ior->io_count; @@ -473,7 +473,7 @@ boolean_t char_read_done( return TRUE; } -boolean_t tty_close_read_reply( +static boolean_t tty_close_read_reply( io_req_t ior) { ior->io_residual = ior->io_count; @@ -524,7 +524,7 @@ void ttyclose( /* * Port-death routine to clean up reply messages. */ -boolean_t +static boolean_t tty_queue_clean( queue_t q, const ipc_port_t port, @@ -882,8 +882,7 @@ void tty_output( /* * Send any buffered recvd chars up to user */ -void ttypush( - void * _tp) +static void ttypush(void * _tp) { struct tty *tp = _tp; spl_t s = spltty(); -- cgit v1.2.3