summaryrefslogtreecommitdiff
path: root/Libraries/LibC/unistd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries/LibC/unistd.cpp')
-rw-r--r--Libraries/LibC/unistd.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/Libraries/LibC/unistd.cpp b/Libraries/LibC/unistd.cpp
index 10fffdd1a1..cd17c7ae83 100644
--- a/Libraries/LibC/unistd.cpp
+++ b/Libraries/LibC/unistd.cpp
@@ -582,15 +582,14 @@ int reboot()
__RETURN_WITH_ERRNO(rc, rc, -1);
}
-int mount(int source_fd, const char* target, const char* fs_type, int flags)
+int mount(const char* source, const char* target, const char* fs_type, int flags)
{
- if (!target || !fs_type) {
+ if (!source || !target || !fs_type) {
errno = EFAULT;
return -1;
}
-
Syscall::SC_mount_params params {
- source_fd,
+ { source, strlen(source) },
{ target, strlen(target) },
{ fs_type, strlen(fs_type) },
flags