sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

commit 708d3a486158ff68d2bb65f853be0a3dc2441ad9
parent 67b904d7b6532d0e907be7c7883cc38f852b41a4
Author: Quentin Rameau <quinq@fifth.space>
Date:   Sun,  6 Jan 2019 00:59:00 +0100

build-page: simplify file type tests

Diffstat:
Mbuild-page.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/build-page.c b/build-page.c @@ -107,7 +107,7 @@ stat_isdir(const char *f) perror(f); return 0; } - return (s.st_mode & S_IFMT) == S_IFDIR; + return S_ISDIR(s.st_mode); } int @@ -119,7 +119,7 @@ stat_isfile(const char *f) perror(f); return 0; } - return (s.st_mode & S_IFMT) == S_IFREG; + return S_ISREG(s.st_mode); } int