From fc6389aa6a03de5c88ea89a75f0992e65f7c4dc8 Mon Sep 17 00:00:00 2001 From: "\"Steven J. Hill\"" Date: Fri, 17 Mar 2006 03:00:05 +0000 Subject: Fix 'realloc' and revert previous changes to tests. malloc tests all pass regardless of the setting of MALLOC_GLIBC_COMPAT. --- test/malloc/tst-mcheck.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'test/malloc/tst-mcheck.c') diff --git a/test/malloc/tst-mcheck.c b/test/malloc/tst-mcheck.c index 7476538d8..af72c042b 100644 --- a/test/malloc/tst-mcheck.c +++ b/test/malloc/tst-mcheck.c @@ -50,11 +50,7 @@ main (void) merror ("malloc (10) failed."); p = realloc (p, 0); -#ifdef __MALLOC_GLIBC_COMPAT__ - if (!p) -#else if (p != NULL) -#endif merror ("realloc (p, 0) failed."); p = malloc (0); @@ -66,11 +62,7 @@ main (void) merror ("malloc (0) failed."); p = realloc (p, 0); -#ifdef __MALLOC_GLIBC_COMPAT__ - if (!p) -#else if (p != NULL) -#endif merror ("realloc (p, 0) failed."); q = malloc (256); -- cgit v1.2.3