pkgtools

morpheus pkg tools
git clone git://git.2f30.org/pkgtools
Log | Files | Refs | README | LICENSE

commit 4a6fcbb334184a4ecd001c9c374391e9105bcdd5
parent b2c31970b9864574b753bb267161e7d9c6c24ab5
Author: sin <sin@2f30.org>
Date:   Tue, 24 Jun 2014 15:36:42 +0100

No need for braces

Diffstat:
Mreject.c | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/reject.c b/reject.c @@ -75,10 +75,8 @@ rej_match(struct db *db, const char *file) if (strncmp(file, "./", 2) == 0) file++; - TAILQ_FOREACH(rule, &db->rejrule_head, entry) { + TAILQ_FOREACH(rule, &db->rejrule_head, entry) if (regexec(&rule->preg, file, 0, NULL, 0) != REG_NOMATCH) return 1; - } - return 0; }