summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2010-11-11 17:35:24 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2010-11-11 17:35:24 +0000
commitc26fa3f89ad0e3360efb31f14d3ef0a34dafa8ce (patch)
tree44aa93d62e86706c7e759db23eac947781b68393 /sys/kern
parentc171ef9367883877a9ae53484ac1de8aa7f0e765 (diff)
Kill unused cinit(), and skip some diagnostic printf if option
DIAGNOSTIC is not set. ok deraadt@
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/tty_subr.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/sys/kern/tty_subr.c b/sys/kern/tty_subr.c
index 3518cbc1b37..bc81a0fd878 100644
--- a/sys/kern/tty_subr.c
+++ b/sys/kern/tty_subr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tty_subr.c,v 1.22 2009/11/13 21:10:34 deraadt Exp $ */
+/* $OpenBSD: tty_subr.c,v 1.23 2010/11/11 17:35:23 miod Exp $ */
/* $NetBSD: tty_subr.c,v 1.13 1996/02/09 19:00:43 christos Exp $ */
/*
@@ -45,18 +45,9 @@
*/
#define QMEM(n) ((((n)-1)/NBBY)+1)
-void cinit(void);
void clrbits(u_char *, int, int);
/*
- * Initialize clists.
- */
-void
-cinit(void)
-{
-}
-
-/*
* Initialize a particular clist. Ok, they are really ring buffers,
* of the specified length, with/without quoting support.
*/
@@ -251,7 +242,7 @@ putc(int c, struct clist *clp)
if (clp->c_cc == 0) {
if (!clp->c_cs) {
-#if defined(DIAGNOSTIC) || 1
+#if defined(DIAGNOSTIC)
printf("putc: required clalloc\n");
#endif
clalloc(clp, 1024, 1);
@@ -334,7 +325,7 @@ b_to_q(u_char *cp, int count, struct clist *clp)
if (clp->c_cc == 0) {
if (!clp->c_cs) {
-#if defined(DIAGNOSTIC) || 1
+#if defined(DIAGNOSTIC)
printf("b_to_q: required clalloc\n");
#endif
clalloc(clp, 1024, 1);