From 309dbc34d2aaea7b16077acfc94afcaa41b7d3e1 Mon Sep 17 00:00:00 2001 From: phk Date: Wed, 30 Jun 2004 21:38:08 +0000 Subject: Define the tty methods as typedefs. Change the return type for t_break to void. Add t_ioctl (more about this later). --- sys/dev/sio/sio.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sys/dev/sio') diff --git a/sys/dev/sio/sio.c b/sys/dev/sio/sio.c index 552af42..fe219b1 100644 --- a/sys/dev/sio/sio.c +++ b/sys/dev/sio/sio.c @@ -283,7 +283,7 @@ struct com_s { static int espattach(struct com_s *com, Port_t esp_port); #endif -static int combreak(struct tty *tp, int sig); +static void combreak(struct tty *tp, int sig); static timeout_t siobusycheck; static u_int siodivisor(u_long rclk, speed_t speed); static timeout_t siodtrwakeup; @@ -2211,7 +2211,7 @@ repeat: goto repeat; } -static int +static void combreak(tp, sig) struct tty *tp; int sig; @@ -2224,7 +2224,6 @@ combreak(tp, sig) sio_setreg(com, com_cfcr, com->cfcr_image |= CFCR_SBREAK); else sio_setreg(com, com_cfcr, com->cfcr_image &= ~CFCR_SBREAK); - return (0); } static int -- cgit v1.1