From 999b065f9ebbc179d82c564a22f1f0fd4e8f1804 Mon Sep 17 00:00:00 2001 From: Vincent Labrecque Date: Mon, 27 Oct 2003 11:21:13 +0000 Subject: fix crash on startup by using the good allocation routine in edinit() spotted and ok by henning --- usr.bin/mg/def.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'usr.bin/mg/def.h') diff --git a/usr.bin/mg/def.h b/usr.bin/mg/def.h index 6bf7e5059b0..2e285760397 100644 --- a/usr.bin/mg/def.h +++ b/usr.bin/mg/def.h @@ -1,4 +1,4 @@ -/* $OpenBSD: def.h,v 1.49 2003/10/21 22:48:07 vincent Exp $ */ +/* $OpenBSD: def.h,v 1.50 2003/10/27 11:21:12 vincent Exp $ */ #include @@ -360,6 +360,8 @@ int kinsert(int, int); int kremove(int); /* window.c X */ +MGWIN *new_window(BUFFER *); +void free_window(MGWIN *); int reposition(int, int); int refresh(int, int); int nextwind(int, int); -- cgit v1.2.3