summaryrefslogtreecommitdiff
path: root/usr.bin/window
diff options
context:
space:
mode:
authoritojun <itojun@NetBSD.org>2003-08-13 15:21:07 +0000
committeritojun <itojun@NetBSD.org>2003-08-13 15:21:07 +0000
commitb103dc8ce0c350cd5484ffbece268af8a57f58bb (patch)
tree7cbc34eaa015189ff09414997111221c0144e598 /usr.bin/window
parentc0c6d52ab291f99cf60c50e6a0bed75381ef6653 (diff)
another fix for PR bin/22464; never set wwbaud to 0.
Diffstat (limited to 'usr.bin/window')
-rw-r--r--usr.bin/window/ttinit.c6
-rw-r--r--usr.bin/window/wwinit.c8
2 files changed, 6 insertions, 8 deletions
diff --git a/usr.bin/window/ttinit.c b/usr.bin/window/ttinit.c
index 20fd74bba76..67a5cfe4aa9 100644
--- a/usr.bin/window/ttinit.c
+++ b/usr.bin/window/ttinit.c
@@ -1,4 +1,4 @@
-/* $NetBSD: ttinit.c,v 1.8 2003/08/13 15:13:46 itojun Exp $ */
+/* $NetBSD: ttinit.c,v 1.9 2003/08/13 15:21:07 itojun Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)ttinit.c 8.1 (Berkeley) 6/6/93";
#else
-__RCSID("$NetBSD: ttinit.c,v 1.8 2003/08/13 15:13:46 itojun Exp $");
+__RCSID("$NetBSD: ttinit.c,v 1.9 2003/08/13 15:21:07 itojun Exp $");
#endif
#endif /* not lint */
@@ -81,8 +81,6 @@ ttinit(void)
* Set output buffer size to about 1 second of output time.
*/
i = MIN(wwbaud/10, 512);
- if (i == 0)
- i = 512;
if ((tt_ob = malloc((unsigned) i)) == 0) {
wwerrno = WWE_NOMEM;
return -1;
diff --git a/usr.bin/window/wwinit.c b/usr.bin/window/wwinit.c
index 79acec143b3..cc0383b9227 100644
--- a/usr.bin/window/wwinit.c
+++ b/usr.bin/window/wwinit.c
@@ -1,4 +1,4 @@
-/* $NetBSD: wwinit.c,v 1.17 2003/08/07 11:17:40 agc Exp $ */
+/* $NetBSD: wwinit.c,v 1.18 2003/08/13 15:21:07 itojun Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)wwinit.c 8.2 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: wwinit.c,v 1.17 2003/08/07 11:17:40 agc Exp $");
+__RCSID("$NetBSD: wwinit.c,v 1.18 2003/08/13 15:21:07 itojun Exp $");
#endif
#endif /* not lint */
@@ -143,7 +143,7 @@ wwinit(void)
switch (wwospeed) {
default:
case B0:
- wwbaud = 0;
+ wwbaud = 9600;
break;
case B50:
wwbaud = 50;
@@ -200,7 +200,7 @@ wwinit(void)
break;
#ifdef B57600
case B57600:
- wwbaud= 57600;
+ wwbaud = 57600;
break;
#endif
#ifdef B115200