* stdio-common/bug1.c: Include <stdlib.h> to get prototype for free.
* malloc/malloc.c: Add missing chunk of patch from 1999-07-04.
1999-07-17 Ulrich Drepper <drepper@cygnus.com>
+ * stdio-common/bug1.c: Include <stdlib.h> to get prototype for free.
+
+ * malloc/malloc.c: Add missing chunk of patch from 1999-07-04.
+
* sysdeps/unix/sysv/linux/bits/time.h (timeval): Use __suseconds_t
type for tv_usec element.
* sysdeps/unix/sysv/linux/alpha/bits/time.h: Likewise
oldp = mem2chunk_check(oldmem);
if(!oldp) {
(void)mutex_unlock(&main_arena.mutex);
- switch(check_action) {
- case 1:
+ if (check_action & 1)
fprintf(stderr, "realloc(): invalid pointer %p!\n", oldmem);
- break;
- case 2:
+ if (check_action & 2)
abort();
- }
return malloc_check(bytes, NULL);
}
oldsize = chunksize(oldp);
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
int