git: 63f6075fcfdc - main - blacklistd: Whitespace police
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 13 Oct 2022 12:48:28 UTC
The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=63f6075fcfdc8e080f1e52f1dc12695fbec761e9 commit 63f6075fcfdc8e080f1e52f1dc12695fbec761e9 Author: Jose Luis Duran <jlduran@gmail.com> AuthorDate: 2022-10-12 15:25:50 +0000 Commit: Ed Maste <emaste@FreeBSD.org> CommitDate: 2022-10-13 12:47:56 +0000 blacklistd: Whitespace police These were missed in the previous whitespace reduction. Fixes: 631bdcf3043c ("blacklistd: whitespace cleanup") Obtained from: https://github.com/zoulasc/blocklist --- contrib/blacklist/bin/conf.c | 2 +- contrib/blacklist/lib/bl.c | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/contrib/blacklist/bin/conf.c b/contrib/blacklist/bin/conf.c index 94baa75c09b0..f872b3de787a 100644 --- a/contrib/blacklist/bin/conf.c +++ b/contrib/blacklist/bin/conf.c @@ -371,6 +371,7 @@ getname(const char *f, size_t l, bool local, struct conf *c, strlcpy(c->c_name, rulename, CONFNAMESZ); return 0; } + if (strcmp(p, "=") == 0) { if (local) goto out; @@ -473,7 +474,6 @@ conf_amask_eq(const void *v1, const void *v2, size_t len, int mask) return 1; goto out; case FEQUAL: - (*lfun)(LOG_CRIT, "%s: Internal error: bad mask %d", __func__, mask); abort(); diff --git a/contrib/blacklist/lib/bl.c b/contrib/blacklist/lib/bl.c index a3aa4ef1f9f6..409317bc3fc0 100644 --- a/contrib/blacklist/lib/bl.c +++ b/contrib/blacklist/lib/bl.c @@ -501,7 +501,6 @@ bl_recv(bl_t b) (got & GOT_CRED) == 0 ? "cred" : #endif "", (got & GOT_FD) == 0 ? "fd" : ""); - return NULL; }