1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:27:35 +00:00

Kernel: Make watch_file() syscall take path length as a size_t

We don't care to handle negative path lengths anyway.
This commit is contained in:
Andreas Kling 2020-01-06 11:12:29 +01:00
parent cf7df95ffe
commit d6b06fd5a3
4 changed files with 4 additions and 4 deletions

View file

@ -15,7 +15,7 @@ int fcntl(int fd, int cmd, ...)
__RETURN_WITH_ERRNO(rc, rc, -1);
}
int watch_file(const char* path, int path_length)
int watch_file(const char* path, size_t path_length)
{
int rc = syscall(SC_watch_file, path, path_length);
__RETURN_WITH_ERRNO(rc, rc, -1);