Skip to content

Commit

Permalink
const
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github committed Aug 14, 2023
1 parent cec5a62 commit 26b8887
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/filelister.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ static std::string addFiles2(std::map<std::string, std::size_t> &files,
std::string new_path = path;
new_path += '/';

while (struct dirent* dir_result = readdir(dir)) {
while (const struct dirent* dir_result = readdir(dir)) {
if ((std::strcmp(dir_result->d_name, ".") == 0) ||
(std::strcmp(dir_result->d_name, "..") == 0))
continue;
Expand Down

0 comments on commit 26b8887

Please sign in to comment.