diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2002-03-14 01:24:22 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2002-03-14 01:24:22 +0000 |
commit | 7b2c79b5895287d37f0c4e3adfc396eb7a6c03fb (patch) | |
tree | d4da94d64c62b202005e6fb973060eaba823c7c3 | |
parent | 87bb9180763481d6d97df4b0729b88e52939c2f9 (diff) |
compare pointers with NULL not 0
-rw-r--r-- | sys/dev/ic/com.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/com.c b/sys/dev/ic/com.c index 71e52a35f99..c0209ca2e13 100644 --- a/sys/dev/ic/com.c +++ b/sys/dev/ic/com.c @@ -1,4 +1,4 @@ -/* $OpenBSD: com.c,v 1.81 2002/02/05 04:15:30 mickey Exp $ */ +/* $OpenBSD: com.c,v 1.82 2002/03/14 01:24:21 jason Exp $ */ /* $NetBSD: com.c,v 1.82.4.1 1996/06/02 09:08:00 mrg Exp $ */ /* @@ -1175,7 +1175,7 @@ compoll(arg) TTY_FE, TTY_PE|TTY_FE }; - if (sc == 0 || sc->sc_ibufp == sc->sc_ibuf) + if (sc == NULL || sc->sc_ibufp == sc->sc_ibuf) goto out; tp = sc->sc_tty; @@ -1195,7 +1195,7 @@ compoll(arg) sc->sc_ibufhigh = sc->sc_ibuf + COM_IHIGHWATER; sc->sc_ibufend = sc->sc_ibuf + COM_IBUFSIZE; - if (tp == 0 || !ISSET(tp->t_state, TS_ISOPEN)) { + if (tp == NULL || !ISSET(tp->t_state, TS_ISOPEN)) { splx(s); goto out; } |