aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/user/nullfs.c
diff options
context:
space:
mode:
authorAlex Auvolat <alex.auvolat@ens.fr>2015-02-19 15:59:58 +0100
committerAlex Auvolat <alex.auvolat@ens.fr>2015-02-19 15:59:58 +0100
commit396a630f55aae0105ce56d302afaa937632d15ed (patch)
treec208e9a93d91cd91557b0ef49dd14aaab725353f /src/kernel/user/nullfs.c
parenta310fbd82d35dbb202f04424fdce551568779ccc (diff)
downloadkogata-396a630f55aae0105ce56d302afaa937632d15ed.tar.gz
kogata-396a630f55aae0105ce56d302afaa937632d15ed.zip
Make VFS thread-safe, probably.
Diffstat (limited to 'src/kernel/user/nullfs.c')
-rw-r--r--src/kernel/user/nullfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kernel/user/nullfs.c b/src/kernel/user/nullfs.c
index 989c0c6..3065192 100644
--- a/src/kernel/user/nullfs.c
+++ b/src/kernel/user/nullfs.c
@@ -6,7 +6,7 @@
#include <nullfs.h>
// nullfs driver
-static bool nullfs_fs_make(fs_handle_t *source, char* opts, fs_t *d);
+static bool nullfs_fs_make(fs_handle_t *source, const char* opts, fs_t *d);
// nullfs fs_t
static void nullfs_fs_shutdown(fs_ptr fs);
@@ -132,7 +132,7 @@ void register_nullfs_driver() {
register_fs_driver("nullfs", &nullfs_driver_ops);
}
-bool nullfs_fs_make(fs_handle_t *source, char* opts, fs_t *fs_s) {
+bool nullfs_fs_make(fs_handle_t *source, const char* opts, fs_t *fs_s) {
nullfs_t *fs = (nullfs_t*)malloc(sizeof(nullfs_t));
if (fs == 0) return false;