Index: display.c =================================================================== RCS file: /cvs/src/usr.bin/mg/display.c,v retrieving revision 1.42 diff -u -r1.42 display.c --- display.c 16 Oct 2014 17:36:11 -0000 1.42 +++ display.c 16 Feb 2015 22:09:29 -0000 @@ -162,14 +162,6 @@ rowchanged = (newrow != nrow); colchanged = (newcol != ncol); -#define TRYREALLOC(a, n) do { \ - void *tmp; \ - if ((tmp = realloc((a), (n))) == NULL) { \ - panic("out of memory in display code"); \ - } \ - (a) = tmp; \ - } while (0) - #define TRYREALLOCARRAY(a, n, m) do { \ void *tmp; \ if ((tmp = reallocarray((a), (n), (m))) == NULL) {\ @@ -246,7 +238,7 @@ return (TRUE); } -#undef TRYREALLOC +#undef TRYREALLOCARRAY /* * Initialize the data structures used