summaryrefslogtreecommitdiff
path: root/stest.c
diff options
context:
space:
mode:
authorConnor Lane Smith <cls@lubutu.com>2011-11-27 23:40:48 +0100
committerConnor Lane Smith <cls@lubutu.com>2011-11-27 23:40:48 +0100
commit32ef0f5662bfe8b8891ba6341d3a27818fb55508 (patch)
tree2b3b522f13ce02cfd973f144539b75f3587d293d /stest.c
parentdcd6e771a1867353c14c46fc37e28d6d313cb3b1 (diff)
stest: cleanup
Diffstat (limited to 'stest.c')
-rw-r--r--stest.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/stest.c b/stest.c
index 9dbf9c1..b4dba64 100644
--- a/stest.c
+++ b/stest.c
@@ -3,7 +3,6 @@
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
-#include <string.h>
#include <unistd.h>
#include <sys/stat.h>
@@ -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 */