From 33776f88dc7a21766cda77b39d94c1b57a18ddc2 Mon Sep 17 00:00:00 2001 From: dwmalone 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-aout/rtld.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libexec/rtld-aout') diff --git a/libexec/rtld-aout/rtld.c b/libexec/rtld-aout/rtld.c index 7f0908b..6769fa1 100644 --- a/libexec/rtld-aout/rtld.c +++ b/libexec/rtld-aout/rtld.c @@ -2518,7 +2518,7 @@ malloc(size) newbrk = (char *) roundup2((unsigned long)rtld_alloc_lev, PAGSIZ); - if (brk(newbrk) == (char *)-1) + if (brk(newbrk) == -1) return NULL; } -- cgit v1.1