From a9710cb73cc9ecadaff241428a39a26935cb5c0a Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Thu, 25 Feb 2021 20:45:10 +0100 Subject: Applied even more warning flags! Fixing all the warnings wasn't that easy actually.. --- kernel/features/fs.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'kernel/features/fs.c') diff --git a/kernel/features/fs.c b/kernel/features/fs.c index 9ea5458..c7aacd0 100644 --- a/kernel/features/fs.c +++ b/kernel/features/fs.c @@ -186,7 +186,7 @@ s32 vfs_stat(const char *path, struct stat *buf) return m->dev->vfs->stat(path, buf, m->dev); } -s32 vfs_wait(const char *path, s32 (*func)()) +s32 vfs_wait(const char *path, u32 func_ptr) { while (*path == ' ') path++; @@ -196,7 +196,7 @@ s32 vfs_wait(const char *path, s32 (*func)()) // Default wait if (!m->dev->vfs->wait) { - proc_wait_for(vfs_find_dev(path)->id, PROC_WAIT_DEV, func); + proc_wait_for(vfs_find_dev(path)->id, PROC_WAIT_DEV, func_ptr); return 1; } @@ -204,7 +204,7 @@ s32 vfs_wait(const char *path, s32 (*func)()) if (len > 1) path += len; - return m->dev->vfs->wait(path, func, m->dev); + return m->dev->vfs->wait(path, func_ptr, m->dev); } s32 vfs_poll(const char **files) @@ -217,7 +217,7 @@ s32 vfs_poll(const char **files) return p - files; for (const char **p = files; *p && **p; p++) - vfs_wait(*p, vfs_poll); + vfs_wait(*p, (u32)vfs_poll); return PROC_MAX_WAIT_IDS + 1; } -- cgit v1.2.3