aboutsummaryrefslogtreecommitdiffstats
path: root/noice.c
diff options
context:
space:
mode:
authorsin <sin@2f30.org>2014-12-20 19:21:03 +0000
committersin <sin@2f30.org>2014-12-20 21:51:27 +0000
commit3fa6a6272cd304671b195111b283417d2d24f851 (patch)
treeab872e15d1f21872695d8a4eca334c149225fc4c /noice.c
parentd907c3f9941a922579d3ad92aedeb1e4e2ab5c2e (diff)
downloadnoice-3fa6a6272cd304671b195111b283417d2d24f851.tar.gz
Simplify visible()
Diffstat (limited to 'noice.c')
-rw-r--r--noice.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/noice.c b/noice.c
index ecad447..b3aff68 100644
--- a/noice.c
+++ b/noice.c
@@ -219,9 +219,7 @@ setfilter(regex_t *regex, char *filter)
int
visible(regex_t *regex, char *file)
{
- if (regexec(regex, file, 0, NULL, 0) == 0)
- return 1;
- return 0;
+ return regexec(regex, file, 0, NULL, 0) == 0;
}
int
Un proyecto texto-plano.xyz