summaryrefslogtreecommitdiff
path: root/usr.bin/mg/window.c
diff options
context:
space:
mode:
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);
}