From 310ae03327a815e721166b64aa3af27b1cc8c2ff Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Fri, 6 Jan 2017 16:32:31 -0500 Subject: all: fix or silence all INSTALL warnings on macOS Should be a clean build now. Change-Id: Id3460371cb5e8d4071f8faa9c2aec870d213a067 Reviewed-on: https://plan9port-review.googlesource.com/2781 Reviewed-by: Russ Cox --- src/cmd/9660srv/iobuf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/cmd/9660srv/iobuf.c') diff --git a/src/cmd/9660srv/iobuf.c b/src/cmd/9660srv/iobuf.c index 30eafb3a..01acd06a 100644 --- a/src/cmd/9660srv/iobuf.c +++ b/src/cmd/9660srv/iobuf.c @@ -46,8 +46,8 @@ iobuf_init(void) n = nclust*sizeof(Ioclust) + nclust*BUFPERCLUST*(sizeof(Iobuf)+Sectorsize); - mem = sbrk(n); - if(mem == (void*)-1) + mem = malloc(n); + if(mem == (void*)0) panic(0, "iobuf_init"); memset(mem, 0, n); -- cgit v1.2.3