Use some more C++20 features (#1231)

This commit is contained in:
Rangi
2023-11-11 20:47:53 -05:00
committed by GitHub
parent dde9f2bb79
commit 31529524c8
4 changed files with 13 additions and 17 deletions

View File

@@ -1197,7 +1197,7 @@ static bool processFilename(char const *name)
if (fstat(input, &stat) == -1) {
report("FATAL: Failed to stat \"%s\": %s\n", name, strerror(errno));
} else if (!S_ISREG(stat.st_mode)) { // FIXME: Do we want to support other types?
} else if (!S_ISREG(stat.st_mode)) { // TODO: Do we want to support other types?
report("FATAL: \"%s\" is not a regular file, and thus cannot be modified in-place\n",
name);
} else if (stat.st_size < 0x150) {