Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Ulrich Drepper committed Jul 17, 1999
1 parent 57fb9b3 commit d957279
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
@@ -1,5 +1,9 @@
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
Expand Down
7 changes: 2 additions & 5 deletions malloc/malloc.c
Expand Up @@ -4436,13 +4436,10 @@ realloc_check(oldmem, bytes, caller)
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);
Expand Down
1 change: 1 addition & 0 deletions stdio-common/bug1.c
@@ -1,4 +1,5 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int
Expand Down

0 comments on commit d957279

Please sign in to comment.