a decade, because all tty drivers preallocate.
ok kettenis
-/* $OpenBSD: tty_subr.c,v 1.33 2016/03/14 23:08:06 krw Exp $ */
+/* $OpenBSD: tty_subr.c,v 1.34 2021/12/01 17:04:26 deraadt Exp $ */
/* $NetBSD: tty_subr.c,v 1.13 1996/02/09 19:00:43 christos Exp $ */
/*
}
if (clp->c_cc == 0) {
- if (!clp->c_cs) {
-#if defined(DIAGNOSTIC)
- printf("putc: required clalloc\n");
-#endif
- clalloc(clp, 1024, 1);
- }
+ if (!clp->c_cs)
+ panic("%s: tty has no clist", __func__);
clp->c_cf = clp->c_cl = clp->c_cs;
}
goto out;
if (clp->c_cc == 0) {
- if (!clp->c_cs) {
-#if defined(DIAGNOSTIC)
- printf("b_to_q: required clalloc\n");
-#endif
- clalloc(clp, 1024, 1);
- }
+ if (!clp->c_cs)
+ panic("%s: tty has no clist", __func__);
clp->c_cf = clp->c_cl = clp->c_cs;
}