From ca664e29a76cba35cb7ffc505db151ec27d21a98 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Sun, 27 Jun 2010 20:00:22 +0000 Subject: Fix bugs just committed git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@1251 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- lib/util/mallocvar.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/util/mallocvar.h b/lib/util/mallocvar.h index 9e111803..31ad38bc 100644 --- a/lib/util/mallocvar.h +++ b/lib/util/mallocvar.h @@ -107,14 +107,14 @@ do { \ abort(); \ } while(0) -#define MALLOCARRAY2(arrayName, nRows, nCols, elementSz) do { \ +#define MALLOCARRAY2(arrayName, nRows, nCols) do { \ void * array; \ pm_mallocarray2(&array, nRows, nCols, sizeof(arrayName[0][0])); \ arrayName = array; \ } while (0) -#define MALLOCARRAY2_NOFAIL(arrayName, nRows, nCols, elementSz) do { \ - MALLOCARRAY2(arrayName, nRows, nCols, elementSz); \ +#define MALLOCARRAY2_NOFAIL(arrayName, nRows, nCols) do { \ + MALLOCARRAY2(arrayName, nRows, nCols); \ if ((arrayName) == NULL) \ abort(); \ } while (0) -- cgit 1.4.1