summaryrefslogtreecommitdiff
path: root/usr.bin/mg/window.c
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-05-23 22:36:16 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-05-23 22:36:16 +0000
commitc9aaaf8fe64f81724844932d61f50ad0c30fc4a4 (patch)
tree230d94a663bcc6e8977e7db717ba69c8dc694353 /usr.bin/mg/window.c
parent6fee94e281db17f3aee1c52d44b07d6ed26dad97 (diff)
Get rid of unnecessary casts of NULL.
Diffstat (limited to 'usr.bin/mg/window.c')
-rw-r--r--usr.bin/mg/window.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mg/window.c b/usr.bin/mg/window.c
index bc63b80c4f4..b17b1a9a83c 100644
--- a/usr.bin/mg/window.c
+++ b/usr.bin/mg/window.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: window.c,v 1.5 2001/01/29 01:58:10 niklas Exp $ */
+/* $OpenBSD: window.c,v 1.6 2001/05/23 22:36:15 art Exp $ */
/*
* Window handling.
@@ -190,7 +190,7 @@ splitwind(f, n)
ewprintf("Cannot split a %d line window", curwp->w_ntrows);
return (FALSE);
}
- if ((wp = (MGWIN *)malloc(sizeof(MGWIN))) == NULL) {
+ if ((wp = malloc(sizeof(MGWIN))) == NULL) {
ewprintf("Can't get %d", sizeof(MGWIN));
return (FALSE);
}