From 98d1592458f5ead3e8cd52ca7d8185977d7fdef8 Mon Sep 17 00:00:00 2001 From: David Malone Date: Thu, 24 Jan 2002 12:11:31 +0000 Subject: Change brk's prototype from char *brk(const char *) to int brk(const void *) and sbrk's prototype from char *sbrk(int) to void *sbrk(intptr_t). This makes us more consistant with NetBSD and standards which include these functions. Bruce pointed out that ptrdiff_t would probably have been better than intptr_t, but this doesn't match other implimentations. Also remove local declarations of sbrk and unnecessary casting. PR: 32296 Tested by: Harti Brandt MFC after: 1 month --- libexec/rtld-elf/malloc.c | 1 - 1 file changed, 1 deletion(-) (limited to 'libexec/rtld-elf') diff --git a/libexec/rtld-elf/malloc.c b/libexec/rtld-elf/malloc.c index cb00a204974a..1e0664ce3195 100644 --- a/libexec/rtld-elf/malloc.c +++ b/libexec/rtld-elf/malloc.c @@ -119,7 +119,6 @@ union overhead { */ #define NBUCKETS 30 static union overhead *nextf[NBUCKETS]; -extern char *sbrk(); static int pagesz; /* page size */ static int pagebucket; /* page size bucket */ -- cgit v1.3