Merge pull request #199 from liuming50/drop-c++-key-word

Avoid using C++ key words
This commit is contained in:
Joachim Wiberg authored and GitHub committed 2021-09-09 08:55:39 +02:00
commit 71e9603e4e
3 files changed
+8 -8

No files matched your search

+3 -3
View File
@@ -36,7 +36,7 @@
static int is_protected(char *dir)
{
size_t i;
char *protected[] = {
char *protected_mnts[] = {
"/sys", "/proc",
"/.dev", "/dev", "/dev/pts", "/dev/shm", "dev/.static/dev", "/dev/vcs",
"/run", "/var/run",
@@ -46,8 +46,8 @@ static int is_protected(char *dir)
"/proc/", "/sys/", "/run/", NULL
};
for (i = 0; protected[i]; i++) {
if (!strcmp(dir, protected[i]))
for (i = 0; protected_mnts[i]; i++) {
if (!strcmp(dir, protected_mnts[i]))
return 1;
}