diff --git a/Userland/Libraries/LibWasm/WASI/Wasi.cpp b/Userland/Libraries/LibWasm/WASI/Wasi.cpp index 22cc5b369a5..034eb18ac31 100644 --- a/Userland/Libraries/LibWasm/WASI/Wasi.cpp +++ b/Userland/Libraries/LibWasm/WASI/Wasi.cpp @@ -511,7 +511,7 @@ ErrorOr> Implementation::impl$fd_prestat_dir_name(Configuration& co ErrorOr> Implementation::impl$path_filestat_get(Configuration& configuration, FD fd, LookupFlags flags, ConstPointer path, Size path_len) { - int dir_fd = AT_FDCWD; + auto dir_fd = AT_FDCWD; auto mapped_fd = map_fd(fd); if (mapped_fd.has()) { @@ -569,7 +569,7 @@ ErrorOr> Implementation::impl$path_filestat_get(Configuration& ErrorOr> Implementation::impl$path_create_directory(Configuration& configuration, FD fd, Pointer path, Size path_len) { - int dir_fd = AT_FDCWD; + auto dir_fd = AT_FDCWD; auto mapped_fd = map_fd(fd); if (mapped_fd.has()) { @@ -595,7 +595,7 @@ ErrorOr> Implementation::impl$path_create_directory(Configuration& ErrorOr> Implementation::impl$path_open(Configuration& configuration, FD fd, LookupFlags lookup_flags, Pointer path, Size path_len, OFlags o_flags, Rights, Rights, FDFlags fd_flags) { - int dir_fd = AT_FDCWD; + auto dir_fd = AT_FDCWD; auto mapped_fd = map_fd(fd); if (mapped_fd.has()) {