summaryrefslogtreecommitdiff
path: root/sys/kern/tty_subr.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2016-03-14 23:08:07 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2016-03-14 23:08:07 +0000
commitf779382c98d99e6d7457e2c790d177db942b5af3 (patch)
treed934e1330cc5a274507d31acd79e0912bd7753c0 /sys/kern/tty_subr.c
parent178b3485055aca748b4147efb3bd65e18a4f77a6 (diff)
Change a bunch of (<blah> *)0 to NULL.
ok beck@ deraadt@
Diffstat (limited to 'sys/kern/tty_subr.c')
-rw-r--r--sys/kern/tty_subr.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/kern/tty_subr.c b/sys/kern/tty_subr.c
index 4f41dbc4abb..0f81ab61d72 100644
--- a/sys/kern/tty_subr.c
+++ b/sys/kern/tty_subr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tty_subr.c,v 1.32 2015/03/14 03:38:51 jsg Exp $ */
+/* $OpenBSD: tty_subr.c,v 1.33 2016/03/14 23:08:06 krw Exp $ */
/* $NetBSD: tty_subr.c,v 1.13 1996/02/09 19:00:43 christos Exp $ */
/*
@@ -105,7 +105,7 @@ getc(struct clist *clp)
if (++clp->c_cf == clp->c_ce)
clp->c_cf = clp->c_cs;
if (--clp->c_cc == 0)
- clp->c_cf = clp->c_cl = (u_char *)0;
+ clp->c_cf = clp->c_cl = NULL;
out:
splx(s);
return c;
@@ -142,7 +142,7 @@ q_to_b(struct clist *clp, u_char *cp, int count)
clp->c_cf = clp->c_cs;
}
if (clp->c_cc == 0)
- clp->c_cf = clp->c_cl = (u_char *)0;
+ clp->c_cf = clp->c_cl = NULL;
splx(s);
return p - cp;
}
@@ -202,7 +202,7 @@ ndflush(struct clist *clp, int count)
s = spltty();
if (count == clp->c_cc) {
clp->c_cc = 0;
- clp->c_cf = clp->c_cl = (u_char *)0;
+ clp->c_cf = clp->c_cl = NULL;
goto out;
}
/* optimize this while loop */
@@ -219,7 +219,7 @@ ndflush(struct clist *clp, int count)
clp->c_cf = clp->c_cs;
}
if (clp->c_cc == 0)
- clp->c_cf = clp->c_cl = (u_char *)0;
+ clp->c_cf = clp->c_cl = NULL;
out:
splx(s);
}
@@ -442,7 +442,7 @@ unputc(struct clist *clp)
clrbit(clp->c_cq, clp->c_cl - clp->c_cs);
}
if (clp->c_cc == 0)
- clp->c_cf = clp->c_cl = (u_char *)0;
+ clp->c_cf = clp->c_cl = NULL;
out:
splx(s);
return c;