mirror of
https://github.com/troglobit/finit.git
synced 2026-10-19 11:09:35 +00:00
Merge pull request #199 from liuming50/drop-c++-key-word
Avoid using C++ key words
This commit is contained in:
3 files changed
+8
-8
No files matched your search
+3
-3
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user