diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1998-04-26 22:49:11 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1998-04-26 22:49:11 +0000 |
commit | b9f9b75aeaa2d1c7ecc17d846d46393f6f324d3c (patch) | |
tree | 1add211522929da446f04ebec0a315d92fd6f371 /usr.bin/window/ttinit.c | |
parent | 5b11a8e4c92cb7765423e7f7a9b7f973b5bcca41 (diff) |
fix some warnings
Diffstat (limited to 'usr.bin/window/ttinit.c')
-rw-r--r-- | usr.bin/window/ttinit.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/window/ttinit.c b/usr.bin/window/ttinit.c index d13549c948b..9d45997eda3 100644 --- a/usr.bin/window/ttinit.c +++ b/usr.bin/window/ttinit.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ttinit.c,v 1.3 1997/02/25 00:04:24 downsj Exp $ */ +/* $OpenBSD: ttinit.c,v 1.4 1998/04/26 22:49:07 millert Exp $ */ /* $NetBSD: ttinit.c,v 1.3 1995/09/28 10:34:50 tls Exp $ */ /* @@ -41,7 +41,7 @@ #if 0 static char sccsid[] = "@(#)ttinit.c 8.1 (Berkeley) 6/6/93"; #else -static char rcsid[] = "$OpenBSD: ttinit.c,v 1.3 1997/02/25 00:04:24 downsj Exp $"; +static char rcsid[] = "$OpenBSD: ttinit.c,v 1.4 1998/04/26 22:49:07 millert Exp $"; #endif #endif /* not lint */ @@ -85,7 +85,7 @@ ttinit() * Set output buffer size to about 1 second of output time. */ i = MIN(wwbaud/10, 512); - if ((tt_ob = malloc((unsigned) i)) == 0) { + if ((tt_ob = malloc(i)) == 0) { wwerrno = WWE_NOMEM; return -1; } @@ -102,7 +102,7 @@ ttinit() p++; for (q = p; *q && *q != '|' && *q != ':'; q++) ; - if (q != p && (t = malloc((unsigned) (q - p + 1))) != 0) { + if (q != p && (t = malloc(q - p + 1)) != 0) { wwterm = t; while (p < q) *t++ = *p++; |