diff options
Diffstat (limited to 'lib/util/mallocvar.h')
-rw-r--r-- | lib/util/mallocvar.h | 6 |
1 files changed, 3 insertions, 3 deletions
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) |