Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/atari/dev More KNF.



details:   https://anonhg.NetBSD.org/src/rev/613db420bff3
branches:  trunk
changeset: 753771:613db420bff3
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Fri Apr 09 16:30:15 2010 +0000

description:
More KNF.

diffstat:

 sys/arch/atari/dev/zs.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r 7aca1ea2fea0 -r 613db420bff3 sys/arch/atari/dev/zs.c
--- a/sys/arch/atari/dev/zs.c   Fri Apr 09 15:45:59 2010 +0000
+++ b/sys/arch/atari/dev/zs.c   Fri Apr 09 16:30:15 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: zs.c,v 1.69 2010/04/09 12:50:34 tsutsui Exp $  */
+/*     $NetBSD: zs.c,v 1.70 2010/04/09 16:30:15 tsutsui Exp $  */
 
 /*
  * Copyright (c) 1992, 1993
@@ -79,7 +79,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: zs.c,v 1.69 2010/04/09 12:50:34 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: zs.c,v 1.70 2010/04/09 16:30:15 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -384,7 +384,7 @@
        }
 
        tp = cs->cs_ttyp;
-       if(tp == NULL) {
+       if (tp == NULL) {
                cs->cs_ttyp = tp = ttymalloc();
                tty_attach(tp);
                tp->t_dev   = dev;
@@ -401,7 +401,7 @@
         * Do the following iff this is a first open.
         */
        if ((tp->t_state & TS_ISOPEN) == 0 && tp->t_wopen == 0) {
-               if(tp->t_ispeed == 0) {
+               if (tp->t_ispeed == 0) {
                        tp->t_iflag = TTYDEF_IFLAG;
                        tp->t_oflag = TTYDEF_OFLAG;
                        tp->t_cflag = TTYDEF_CFLAG;
@@ -424,7 +424,7 @@
                /* May never get a status intr. if DCD already on. -gwr */
                if (((cs->cs_rr0 = cs->cs_zc->zc_csr) & ZSRR0_DCD) != 0)
                        tp->t_state |= TS_CARR_ON;
-               if(cs->cs_softcar)
+               if (cs->cs_softcar)
                        tp->t_state |= TS_CARR_ON;
        }
 
@@ -694,7 +694,7 @@
 {
        time_t cur_sec = time_second;
 
-       if(*ptime != cur_sec) {
+       if (*ptime != cur_sec) {
                *ptime = cur_sec;
                log(LOG_WARNING, "zs%d%c: %s overrun\n", unit >> 1,
                    (unit & 1) + 'a', what);



Home | Main Index | Thread Index | Old Index