summaryrefslogtreecommitdiff
path: root/sys/kern/subr_clist.c
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>1995-11-02 08:37:22 +0000
committerPeter Wemm <peter@FreeBSD.org>1995-11-02 08:37:22 +0000
commit0839e0de722a189e273943ae3fb85671bf711e04 (patch)
tree326053e1ee22df16c102d48780f17e17addc3b04 /sys/kern/subr_clist.c
parent23922ccacac77d574fbda84a42df9863a9fe018a (diff)
Notes
Diffstat (limited to 'sys/kern/subr_clist.c')
-rw-r--r--sys/kern/subr_clist.c18
1 files changed, 5 insertions, 13 deletions
diff --git a/sys/kern/subr_clist.c b/sys/kern/subr_clist.c
index 1855e17c3481..133ced4e0b27 100644
--- a/sys/kern/subr_clist.c
+++ b/sys/kern/subr_clist.c
@@ -6,7 +6,7 @@
* of this software, nor does the author assume any responsibility
* for damages incurred with its use.
*
- * $Id: tty_subr.c,v 1.15 1995/10/31 19:00:00 peter Exp $
+ * $Id: tty_subr.c,v 1.16 1995/11/01 15:59:55 peter Exp $
*/
/*
@@ -351,12 +351,8 @@ putc(chr, clistp)
if (clistp->c_cl == NULL) {
if (clistp->c_cbreserved < 1) {
splx(s);
- printf("putc to a clist with no reserved cblocks: data discarded.\n");
-#ifdef DIAGNOSTIC
- Debugger("putc to clist with no reserved cblocks");
-#endif
- /* black-hole the character */
- return (0);
+ printf("putc to a clist with no reserved cblocks\n");
+ return (-1); /* nothing done */
}
cblockp = cblock_alloc();
clistp->c_cbcount = 1;
@@ -434,12 +430,8 @@ b_to_q(src, amount, clistp)
if (clistp->c_cl == NULL) {
if (clistp->c_cbreserved < 1) {
splx(s);
- printf("b_to_q to a clist with no reserved cblocks: data discarded.\n");
-#ifdef DIAGNOSTIC
- Debugger("b_to_q to clist with no reserved cblocks");
-#endif
- /* black-hole the characters */
- return (0);
+ printf("b_to_q to a clist with no reserved cblocks.\n");
+ return (amount); /* nothing done */
}
cblockp = cblock_alloc();
clistp->c_cbcount = 1;