Source-Changes-HG archive

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

[src/trunk]: src/sys/kern use NULL instead of 0 for pointers.



details:   https://anonhg.NetBSD.org/src/rev/56ac1825b1d7
branches:  trunk
changeset: 755632:56ac1825b1d7
user:      yamt <yamt%NetBSD.org@localhost>
date:      Sun Jun 13 03:32:47 2010 +0000

description:
use NULL instead of 0 for pointers.

diffstat:

 sys/kern/tty_pty.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r 13559b8527ac -r 56ac1825b1d7 sys/kern/tty_pty.c
--- a/sys/kern/tty_pty.c        Sun Jun 13 03:31:28 2010 +0000
+++ b/sys/kern/tty_pty.c        Sun Jun 13 03:32:47 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tty_pty.c,v 1.121 2010/01/24 19:56:26 dholland Exp $   */
+/*     $NetBSD: tty_pty.c,v 1.122 2010/06/13 03:32:47 yamt Exp $       */
 
 /*
  * Copyright (c) 1982, 1986, 1989, 1993
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tty_pty.c,v 1.121 2010/01/24 19:56:26 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tty_pty.c,v 1.122 2010/06/13 03:32:47 yamt Exp $");
 
 #include "opt_ptm.h"
 
@@ -449,7 +449,7 @@
        struct pt_softc *pti = pt_softc[minor(dev)];
        struct tty *tp = pti->pt_tty;
 
-       if (tp->t_oproc == 0)
+       if (tp->t_oproc == NULL)
                return (EIO);
        return ((*tp->t_linesw->l_write)(tp, uio, flag));
 }
@@ -463,7 +463,7 @@
        struct pt_softc *pti = pt_softc[minor(dev)];
        struct tty *tp = pti->pt_tty;
 
-       if (tp->t_oproc == 0)
+       if (tp->t_oproc == NULL)
                return (POLLHUP);
 
        return ((*tp->t_linesw->l_poll)(tp, events, l));
@@ -577,7 +577,7 @@
        (void)(*tp->t_linesw->l_modem)(tp, 0);
        mutex_spin_enter(&tty_lock);
        CLR(tp->t_state, TS_CARR_ON);
-       tp->t_oproc = 0;                /* mark closed */
+       tp->t_oproc = NULL;             /* mark closed */
        mutex_spin_exit(&tty_lock);
        return (0);
 }



Home | Main Index | Thread Index | Old Index