summaryrefslogtreecommitdiff
path: root/editors/mg/files/patch-display.c
diff options
context:
space:
mode:
authorOlivier Duchateau <olivierd@FreeBSD.org>2016-10-06 19:51:19 +0000
committerOlivier Duchateau <olivierd@FreeBSD.org>2016-10-06 19:51:19 +0000
commit0f3528e19a95717b8e308ee0bd6816dea54955b4 (patch)
treef192247f7d7c703f0af8999e97e5f77211415e23 /editors/mg/files/patch-display.c
parentsecurity/openssl: Fix ldconfig issue (diff)
- 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: <darcsis@gmail.com> (previous maintainer, timeout > 3 weeks)
Diffstat (limited to 'editors/mg/files/patch-display.c')
-rw-r--r--editors/mg/files/patch-display.c40
1 files changed, 0 insertions, 40 deletions
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