diff options
author | Nicholas Noll <nbnoll@eml.cc> | 2021-12-05 16:53:55 -0800 |
---|---|---|
committer | Nicholas Noll <nbnoll@eml.cc> | 2021-12-05 16:53:55 -0800 |
commit | b4cb7c06f94e2e91b22b7d82efd7943a82331d86 (patch) | |
tree | 99fa7085855875efa7422ee58f322f8c94bda860 /src/base/fs/read.c | |
parent | 07e77936d535e58b0aeb4f2a11400c1050556739 (diff) |
Chore: updated fs·walk to use new data structures
Completes the port to our standard library (up to malloc).
Diffstat (limited to 'src/base/fs/read.c')
-rw-r--r-- | src/base/fs/read.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/base/fs/read.c b/src/base/fs/read.c index 7e60823..44b02a8 100644 --- a/src/base/fs/read.c +++ b/src/base/fs/read.c @@ -1,6 +1,5 @@ #include <u.h> #include <base.h> -#include <sys.h> int fs·read(fs·Directory *dir, fs·DirEntry **ent) @@ -10,7 +9,7 @@ fs·read(fs·Directory *dir, fs·DirEntry **ent) fs·DirEntry *de; if(dir->pos >= dir->end){ - if((err=sys·direntry(dir->fd, arrlen(dir->buf), dir->buf, &n))) + if((err=sys·direntry(dir->fd, dir->buf, arrlen(dir->buf), &n))) return err; dir->pos = 0; dir->end = n; |