[hackers] [dmenu] stest: cleanup || Connor Lane Smith

From: <hg_AT_suckless.org>
Date: Sun, 27 Nov 2011 23:41:00 +0100 (CET)

changeset: 471:60d97462ff9d
branch: stest
tag: tip
user: Connor Lane Smith <cls_AT_lubutu.com>
date: Sun Nov 27 23:40:48 2011 +0100
files: stest.c
description:
stest: cleanup


diff -r 8656fc4a34ee -r 60d97462ff9d stest.c
--- a/stest.c Sun Nov 27 23:37:01 2011 +0100
+++ b/stest.c Sun Nov 27 23:40:48 2011 +0100
_AT_@ -3,7 +3,6 @@
 #include <stdbool.h>
 #include <stdio.h>
 #include <stdlib.h>
-#include <string.h>
 #include <unistd.h>
 #include <sys/stat.h>
 
_AT_@ -54,7 +53,7 @@
 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 */
Received on Sun Nov 27 2011 - 23:41:00 CET

This archive was generated by hypermail 2.3.0 : Sun Nov 27 2011 - 23:48:08 CET