diff --git a/Userland/ls.cpp b/Userland/ls.cpp index ad26e020ad..0f9086c9cb 100644 --- a/Userland/ls.cpp +++ b/Userland/ls.cpp @@ -17,7 +17,7 @@ int main(int c, char** v) while (auto* de = readdir(dirp)) { sprintf(pathbuf, "%s", de->d_name); - stat st; + struct stat st; int rc = lstat(pathbuf, &st); if (rc == -1) { printf("lstat(%s) failed: %s\n", pathbuf, strerror(errno));