summaryrefslogtreecommitdiff
path: root/sys/src/lib9p
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2014-06-11 18:01:20 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2014-06-11 18:01:20 +0200
commit3a5b2189ed5c5e064912b037c5a3c717de1e791a (patch)
treec05e6cbb1332eeec341ea798b5d6f3e26b9f9dd1 /sys/src/lib9p
parentb4c3726381a5d7f089480bd777f0a096bf82bbee (diff)
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.
Diffstat (limited to 'sys/src/lib9p')
-rwxr-xr-x[-rw-r--r--]sys/src/lib9p/ramfs.c2
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;