mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
Userland: Fix two compiler warnings.
This commit is contained in:
parent
75b100673f
commit
b0d1969ca5
Notes:
sideshowbarker
2024-07-19 15:38:24 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/b0d1969ca5c
2 changed files with 2 additions and 2 deletions
|
@ -10,7 +10,7 @@ int main(int argc, char **argv)
|
|||
return 1;
|
||||
}
|
||||
|
||||
mode_t mode;
|
||||
unsigned mode;
|
||||
int rc = sscanf(argv[1], "%o", &mode);
|
||||
if (rc != 1) {
|
||||
perror("sscanf");
|
||||
|
|
|
@ -111,7 +111,7 @@ int do_dir(const char* path)
|
|||
perror("opendir");
|
||||
return 1;
|
||||
}
|
||||
char pathbuf[256];
|
||||
char pathbuf[PATH_MAX];
|
||||
|
||||
while (auto* de = readdir(dirp)) {
|
||||
if (de->d_name[0] == '.' && !flag_show_dotfiles)
|
||||
|
|
Loading…
Reference in a new issue