Simplify condition

This commit is contained in:
sin 2014-12-20 19:35:27 +00:00
parent 3fa6a6272c
commit 3b5fe15166

View file

@ -365,13 +365,11 @@ canopendir(char *path)
DIR *dirp;
dirp = opendir(path);
if (dirp == NULL) {
if (dirp == NULL)
return 0;
} else {
closedir(dirp);
return 1;
}
}
void
printent(struct entry *ent, int active)