From: Paul Eggert Date: Tue, 29 Oct 2024 23:27:45 +0000 (-0700) Subject: * functions.m4: Fix typos in previous change. X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=74df3c673320c06481f5c5b18ff7979a3034a9e5;p=thirdparty%2Fautoconf.git * functions.m4: Fix typos in previous change. --- diff --git a/lib/autoconf/functions.m4 b/lib/autoconf/functions.m4 index 9422edbd..23a0bf8a 100644 --- a/lib/autoconf/functions.m4 +++ b/lib/autoconf/functions.m4 @@ -984,7 +984,7 @@ AC_DEFUN([_AC_FUNC_MALLOC_IF], /* Use pmalloc to test; 'volatile' prevents the compiler from optimizing the malloc call away. */ void *(*volatile pmalloc) (size_t) = malloc;]], - [[void *p = pmalloc (nbytes); + [[void *p = pmalloc (0); int result = !p; free (p); return result;]]) @@ -1500,7 +1500,7 @@ AC_DEFUN([_AC_FUNC_REALLOC_IF], /* Use prealloc to test; 'volatile' prevents the compiler from optimizing the realloc call away. */ void *(*volatile prealloc) (void *, size_t) = realloc;]], - [[void *p = prealloc (n, n); + [[void *p = prealloc (0, 0); int result = !p; free (p); return result;]])