Clean up the previous commit I did on this file.

The Jury has not reached a verdict yet on this approach - a better fix
may be thought of, but for now this works.
This commit is contained in:
Peter Wemm 1995-11-01 15:59:55 +00:00
parent 30a4b938d0
commit a317bc2c36
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=12000
2 changed files with 18 additions and 10 deletions

View file

@ -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.14 1995/10/25 17:59:58 bde Exp $
* $Id: tty_subr.c,v 1.15 1995/10/31 19:00:00 peter Exp $
*/
/*
@ -351,10 +351,12 @@ 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
printf("putc to a clist with no reserved cblocks");
Debugger("putc to clist with no reserved cblocks");
#endif
return (-1);
/* black-hole the character */
return (0);
}
cblockp = cblock_alloc();
clistp->c_cbcount = 1;
@ -432,10 +434,12 @@ 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
printf("b_to_q to a clist with no reserved cblocks");
Debugger("b_to_q to clist with no reserved cblocks");
#endif
return (amount);
/* black-hole the characters */
return (0);
}
cblockp = cblock_alloc();
clistp->c_cbcount = 1;

View file

@ -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.14 1995/10/25 17:59:58 bde Exp $
* $Id: tty_subr.c,v 1.15 1995/10/31 19:00:00 peter Exp $
*/
/*
@ -351,10 +351,12 @@ 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
printf("putc to a clist with no reserved cblocks");
Debugger("putc to clist with no reserved cblocks");
#endif
return (-1);
/* black-hole the character */
return (0);
}
cblockp = cblock_alloc();
clistp->c_cbcount = 1;
@ -432,10 +434,12 @@ 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
printf("b_to_q to a clist with no reserved cblocks");
Debugger("b_to_q to clist with no reserved cblocks");
#endif
return (amount);
/* black-hole the characters */
return (0);
}
cblockp = cblock_alloc();
clistp->c_cbcount = 1;