summaryrefslogtreecommitdiff
path: root/src/kernel/vfs
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/vfs')
-rw-r--r--src/kernel/vfs/procfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kernel/vfs/procfs.c b/src/kernel/vfs/procfs.c
index 2e3130d..4bacaf7 100644
--- a/src/kernel/vfs/procfs.c
+++ b/src/kernel/vfs/procfs.c
@@ -82,7 +82,7 @@ openpath(const char *path, size_t len, Proc *root)
static Proc *
findgid(uint32_t gid, Proc *root)
{
- for (Proc *p = root; p; p = proc_next(p, root)) {
+ for (Proc *p = root; p; p = proc_next(root, p)) {
if (p->globalid == gid) return p;
}
return NULL;
@@ -156,7 +156,7 @@ procfs_accept(VfsReq *req)
if (h->type == PhIntr) {
proc_intr(p, buf, len);
} else {
- for (Proc *it = p->child; it; it = proc_next(it, p)) {
+ for (Proc *it = p->child; it; it = proc_next(p, it)) {
proc_intr(it, buf, len);
}
}