diff options
author | Russ Cox <rsc@swtch.com> | 2017-01-06 16:32:31 -0500 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2017-01-06 21:37:31 +0000 |
commit | 310ae03327a815e721166b64aa3af27b1cc8c2ff (patch) | |
tree | 3aaf93aaf66d29658ec8da82b3b09c1a6d941660 /src/cmd/9660srv | |
parent | 9e0d3750c543de49ccc43512cb3fbaa1f42f1648 (diff) | |
download | plan9port-310ae03327a815e721166b64aa3af27b1cc8c2ff.tar.gz plan9port-310ae03327a815e721166b64aa3af27b1cc8c2ff.tar.bz2 plan9port-310ae03327a815e721166b64aa3af27b1cc8c2ff.zip |
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 <rsc@swtch.com>
Diffstat (limited to 'src/cmd/9660srv')
-rw-r--r-- | src/cmd/9660srv/iobuf.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |