diff src/fs.c @ 31:96a5833d0d82

fix
author mir3636
date Fri, 18 Jan 2019 18:20:02 +0900
parents 1a64b5645cdd
children 96af12a50fdb
line wrap: on
line diff
--- a/src/fs.c	Fri Jan 18 11:50:48 2019 +0900
+++ b/src/fs.c	Fri Jan 18 18:20:02 2019 +0900
@@ -453,7 +453,7 @@
     st->size = ip->size;
 }
 
-__code cbc_readi (struct inode *ip, char *dst, uint off, uint n, __code (*next)(int ret))
+__code cbc_readi (struct inode *ip, char *dst, uint off, uint n, struct file *f, __code (*next)(int ret))
 {
     uint tot, m;
     struct buf *bp;
@@ -463,7 +463,7 @@
             goto next(-1);
         }
 
-        goto cbc_devsw[ip->major].read(ip, dst, n, next);
+        goto cbc_devsw[ip->major].read(ip, dst, n, f, next);
     }
 
     if (off > ip->size || off + n < off) {