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/wwsize.c | |
parent | 5b11a8e4c92cb7765423e7f7a9b7f973b5bcca41 (diff) |
fix some warnings
Diffstat (limited to 'usr.bin/window/wwsize.c')
-rw-r--r-- | usr.bin/window/wwsize.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/window/wwsize.c b/usr.bin/window/wwsize.c index 8c3781bd6b8..6c25cb78093 100644 --- a/usr.bin/window/wwsize.c +++ b/usr.bin/window/wwsize.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wwsize.c,v 1.5 1997/02/25 00:05:08 downsj Exp $ */ +/* $OpenBSD: wwsize.c,v 1.6 1998/04/26 22:49:02 millert Exp $ */ /* $NetBSD: wwsize.c,v 1.5 1996/02/08 20:45:11 mycroft Exp $ */ /* @@ -41,10 +41,11 @@ #if 0 static char sccsid[] = "@(#)wwsize.c 8.1 (Berkeley) 6/6/93"; #else -static char rcsid[] = "$OpenBSD: wwsize.c,v 1.5 1997/02/25 00:05:08 downsj Exp $"; +static char rcsid[] = "$OpenBSD: wwsize.c,v 1.6 1998/04/26 22:49:02 millert Exp $"; #endif #endif /* not lint */ +#include <stdlib.h> #include "ww.h" /* @@ -79,7 +80,7 @@ register struct ww *w; if (buf == 0) goto bad; } - nvis = (short *)malloc((unsigned) nrow * sizeof (short)); + nvis = (short *)malloc(nrow * sizeof (short)); if (nvis == 0) { wwerrno = WWE_NOMEM; goto bad; |