From d28168db048670ce4d3a2fccc387d0cb65bf1464 Mon Sep 17 00:00:00 2001 From: bde Date: Sat, 23 Mar 2002 12:13:34 +0000 Subject: Fixed some style bugs in the removal of __P(()). The main ones were not removing tabs before "__P((", and not outdenting continuation lines to preserve non-KNF lining up of code with parentheses. Switch to KNF formatting and/or rewrap the whole prototype in some cases. --- sys/dev/sio/sio.c | 36 ++++++++++++++++++------------------ sys/dev/sio/sio_isa.c | 4 ++-- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/sys/dev/sio/sio.c b/sys/dev/sio/sio.c index b2e75d9..fa2d698 100644 --- a/sys/dev/sio/sio.c +++ b/sys/dev/sio/sio.c @@ -271,26 +271,26 @@ struct com_s { }; #ifdef COM_ESP -static int espattach (struct com_s *com, Port_t esp_port); +static int espattach(struct com_s *com, Port_t esp_port); #endif static timeout_t siobusycheck; -static u_int siodivisor (u_long rclk, speed_t speed); +static u_int siodivisor(u_long rclk, speed_t speed); static timeout_t siodtrwakeup; -static void comhardclose (struct com_s *com); -static void sioinput (struct com_s *com); -static void siointr1 (struct com_s *com); -static void siointr (void *arg); -static int commctl (struct com_s *com, int bits, int how); -static int comparam (struct tty *tp, struct termios *t); -static void siopoll (void *); -static void siosettimeout (void); -static int siosetwater (struct com_s *com, speed_t speed); -static void comstart (struct tty *tp); -static void comstop (struct tty *tp, int rw); +static void comhardclose(struct com_s *com); +static void sioinput(struct com_s *com); +static void siointr1(struct com_s *com); +static void siointr(void *arg); +static int commctl(struct com_s *com, int bits, int how); +static int comparam(struct tty *tp, struct termios *t); +static void siopoll(void *); +static void siosettimeout(void); +static int siosetwater(struct com_s *com, speed_t speed); +static void comstart(struct tty *tp); +static void comstop(struct tty *tp, int rw); static timeout_t comwakeup; -static void disc_optim (struct tty *tp, struct termios *t, - struct com_s *com); +static void disc_optim(struct tty *tp, struct termios *t, + struct com_s *com); char sio_driver_name[] = "sio"; static struct mtx sio_lock; @@ -2705,9 +2705,9 @@ struct siocnstate { #ifndef __alpha__ static speed_t siocngetspeed(Port_t, u_long rclk); #endif -static void siocnclose (struct siocnstate *sp, Port_t iobase); -static void siocnopen (struct siocnstate *sp, Port_t iobase, int speed); -static void siocntxwait (Port_t iobase); +static void siocnclose(struct siocnstate *sp, Port_t iobase); +static void siocnopen(struct siocnstate *sp, Port_t iobase, int speed); +static void siocntxwait(Port_t iobase); #ifdef __alpha__ int siocnattach(int port, int speed); diff --git a/sys/dev/sio/sio_isa.c b/sys/dev/sio/sio_isa.c index e1a3917..91ea9b9 100644 --- a/sys/dev/sio/sio_isa.c +++ b/sys/dev/sio/sio_isa.c @@ -43,8 +43,8 @@ #include #include -static int sio_isa_attach (device_t dev); -static int sio_isa_probe (device_t dev); +static int sio_isa_attach(device_t dev); +static int sio_isa_probe(device_t dev); static device_method_t sio_isa_methods[] = { /* Device interface */ -- cgit v1.1