mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-21 12:30:06 +00:00
Update.
* stdio-common/bug1.c: Include <stdlib.h> to get prototype for free. * malloc/malloc.c: Add missing chunk of patch from 1999-07-04.
This commit is contained in:
parent
57fb9b3868
commit
d957279cfb
@ -1,5 +1,9 @@
|
|||||||
1999-07-17 Ulrich Drepper <drepper@cygnus.com>
|
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
|
* sysdeps/unix/sysv/linux/bits/time.h (timeval): Use __suseconds_t
|
||||||
type for tv_usec element.
|
type for tv_usec element.
|
||||||
* sysdeps/unix/sysv/linux/alpha/bits/time.h: Likewise
|
* sysdeps/unix/sysv/linux/alpha/bits/time.h: Likewise
|
||||||
|
@ -4436,13 +4436,10 @@ realloc_check(oldmem, bytes, caller)
|
|||||||
oldp = mem2chunk_check(oldmem);
|
oldp = mem2chunk_check(oldmem);
|
||||||
if(!oldp) {
|
if(!oldp) {
|
||||||
(void)mutex_unlock(&main_arena.mutex);
|
(void)mutex_unlock(&main_arena.mutex);
|
||||||
switch(check_action) {
|
if (check_action & 1)
|
||||||
case 1:
|
|
||||||
fprintf(stderr, "realloc(): invalid pointer %p!\n", oldmem);
|
fprintf(stderr, "realloc(): invalid pointer %p!\n", oldmem);
|
||||||
break;
|
if (check_action & 2)
|
||||||
case 2:
|
|
||||||
abort();
|
abort();
|
||||||
}
|
|
||||||
return malloc_check(bytes, NULL);
|
return malloc_check(bytes, NULL);
|
||||||
}
|
}
|
||||||
oldsize = chunksize(oldp);
|
oldsize = chunksize(oldp);
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
int
|
int
|
||||||
|
Loading…
Reference in New Issue
Block a user