diff options
| author | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-06-11 18:01:20 +0200 |
|---|---|---|
| committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-06-11 18:01:20 +0200 |
| commit | 3a5b2189ed5c5e064912b037c5a3c717de1e791a (patch) | |
| tree | c05e6cbb1332eeec341ea798b5d6f3e26b9f9dd1 | |
| parent | b4c3726381a5d7f089480bd777f0a096bf82bbee (diff) | |
| download | plan9front-3a5b2189ed5c5e064912b037c5a3c717de1e791a.tar.xz | |
revert ramfs example
the code was correct. erealloc9p() terminates the process
on error, but the code was handling realloc() error explicitely
and responded the request with Enomem error.
| -rwxr-xr-x[-rw-r--r--] | sys/src/lib9p/ramfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/lib9p/ramfs.c b/sys/src/lib9p/ramfs.c index e59b7e0c7..13004a4ec 100644..100755 --- a/sys/src/lib9p/ramfs.c +++ b/sys/src/lib9p/ramfs.c @@ -53,7 +53,7 @@ fswrite(Req *r) count = r->ifcall.count; if(offset+count >= rf->ndata){ - v = erealloc9p(rf->data, offset+count); + v = realloc(rf->data, offset+count); if(v == nil){ respond(r, Enomem); return; |
