From 0f3528e19a95717b8e308ee0bd6816dea54955b4 Mon Sep 17 00:00:00 2001 From: Olivier Duchateau Date: Thu, 6 Oct 2016 19:51:19 +0000 Subject: - Update to 20160912 snapshot - Remove GNUmakefile patch, port doesn't use gmake - Replace patches by another, when reallocarray(3) is missing - Pass maintainership to submitter - Add LICENSE - Update pkg-descr PR: 212634 Submitted by: Tobias Kortkamp Approved by: (previous maintainer, timeout > 3 weeks) --- editors/mg/files/patch-display.c | 40 ---------------------------------------- 1 file changed, 40 deletions(-) delete mode 100644 editors/mg/files/patch-display.c (limited to 'editors/mg/files/patch-display.c') diff --git a/editors/mg/files/patch-display.c b/editors/mg/files/patch-display.c deleted file mode 100644 index d73358856978..000000000000 --- a/editors/mg/files/patch-display.c +++ /dev/null @@ -1,40 +0,0 @@ ---- display.c.orig 2015-03-16 14:39:00 UTC -+++ display.c -@@ -170,14 +170,6 @@ vtresize(int force, int newrow, int newc - (a) = tmp; \ - } while (0) - --#define TRYREALLOCARRAY(a, n, m) do { \ -- void *tmp; \ -- if ((tmp = reallocarray((a), (n), (m))) == NULL) {\ -- panic("out of memory in display code"); \ -- } \ -- (a) = tmp; \ -- } while (0) -- - /* No update needed */ - if (!first_run && !force && !rowchanged && !colchanged) - return (TRUE); -@@ -206,10 +198,10 @@ vtresize(int force, int newrow, int newc - } - } - -- TRYREALLOCARRAY(score, newrow, newrow * sizeof(struct score)); -- TRYREALLOCARRAY(vscreen, (newrow - 1), sizeof(struct video *)); -- TRYREALLOCARRAY(pscreen, (newrow - 1), sizeof(struct video *)); -- TRYREALLOCARRAY(video, (newrow - 1), 2 * sizeof(struct video)); -+ TRYREALLOC(score, newrow * newrow * sizeof(struct score)); -+ TRYREALLOC(vscreen, (newrow - 1) * sizeof(struct video *)); -+ TRYREALLOC(pscreen, (newrow - 1) * sizeof(struct video *)); -+ TRYREALLOC(video, ((newrow - 1) * 2) * sizeof(struct video)); - - /* - * Zero-out the entries we just allocated. -@@ -247,7 +239,6 @@ vtresize(int force, int newrow, int newc - } - - #undef TRYREALLOC --#undef TRYREALLOCARRAY - - /* - * Initialize the data structures used -- cgit v1.2.3