diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-05-03 00:51:45 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-05-03 00:51:45 +0200 |
commit | 4c639475ce8cf0aec59632b6f7537169f1537f13 (patch) | |
tree | bc8aedcf42c1527d7ee62a43c5d73c923c24bcad /sys/src/cmd/cwfs/iobuf.c | |
parent | 72e4d850a4c2b334b3442dd39aa973650e5d5ba4 (diff) |
cwfs: fix 1GB memsize limitation
the malloc pool allocator is limited in its allocation
size. as almost all data structures in cwfs are never
freed, use brk() in ialloc() instead of mallocalign().
this means memory returned by ialloc() cannot be freed!
to make sure we do not call free by accident, remove
the #define malloc(n) ialloc(n, 0) macro and use ialloc()
directly as in the original code to show the intend
of permanent allocations.
Diffstat (limited to 'sys/src/cmd/cwfs/iobuf.c')
-rw-r--r-- | sys/src/cmd/cwfs/iobuf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/cwfs/iobuf.c b/sys/src/cmd/cwfs/iobuf.c index a48c7ace5..0caebf38b 100644 --- a/sys/src/cmd/cwfs/iobuf.c +++ b/sys/src/cmd/cwfs/iobuf.c @@ -1,7 +1,7 @@ #include "all.h" #include "io.h" -extern long nhiob; +extern uint nhiob; extern Hiob *hiob; Iobuf* |