summaryrefslogtreecommitdiffstats
path: root/sys/kern/tty_subr.c
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2010-11-11 17:35:23 +0000
committermiod <miod@openbsd.org>2010-11-11 17:35:23 +0000
commit332cc2726d79c8ff3f925163a542a4dddd30b7a6 (patch)
treea5b9b96aabcf4618f1b608d92d18bdf1d96d428f /sys/kern/tty_subr.c
parentCorrectly disassemble ssnop. (diff)
downloadwireguard-openbsd-332cc2726d79c8ff3f925163a542a4dddd30b7a6.tar.xz
wireguard-openbsd-332cc2726d79c8ff3f925163a542a4dddd30b7a6.zip
Kill unused cinit(), and skip some diagnostic printf if option
DIAGNOSTIC is not set. ok deraadt@
Diffstat (limited to 'sys/kern/tty_subr.c')
-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);