X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=stest.c;h=b4dba64d215dbac2135e7a5b7cf708ab4d53d2c8;hb=32ef0f5662bfe8b8891ba6341d3a27818fb55508;hp=9dbf9c11d4e2b9de71a366ef54959ed50687d372;hpb=dcd6e771a1867353c14c46fc37e28d6d313cb3b1;p=dmenu.git diff --git a/stest.c b/stest.c index 9dbf9c1..b4dba64 100644 --- a/stest.c +++ b/stest.c @@ -3,7 +3,6 @@ #include #include #include -#include #include #include @@ -54,7 +53,7 @@ void test(const char *path, const char *name) { struct stat st, ln; - if(!stat(path, &st) && ( FLAG('a') || name[0] != '.') /* hidden files */ + if(!stat(path, &st) && (FLAG('a') || name[0] != '.') /* hidden files */ && (!FLAG('b') || S_ISBLK(st.st_mode)) /* block special */ && (!FLAG('c') || S_ISCHR(st.st_mode)) /* character special */ && (!FLAG('d') || S_ISDIR(st.st_mode)) /* directory */