Date: Tue, 02 Jun 2026 16:42:13 +0000 From: Dag-Erling=?utf-8?Q? Sm=C3=B8rg?=rav <des@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: b243ead1edd8 - stable/15 - certctl: Style nits Message-ID: <6a1f07e5.467ee.6a88bd7b@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch stable/15 has been updated by des: URL: https://cgit.FreeBSD.org/src/commit/?id=b243ead1edd80fe1d5dddbf75d94a64a9f2b0902 commit b243ead1edd80fe1d5dddbf75d94a64a9f2b0902 Author: Dag-Erling Smørgrav <des@FreeBSD.org> AuthorDate: 2026-05-28 12:28:22 +0000 Commit: Dag-Erling Smørgrav <des@FreeBSD.org> CommitDate: 2026-06-02 16:41:38 +0000 certctl: Style nits MFC after: 1 week Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D57298 (cherry picked from commit 39f23af2ba4b845eb7f4ec7ae4079a67557eb63d) --- usr.sbin/certctl/certctl.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/usr.sbin/certctl/certctl.c b/usr.sbin/certctl/certctl.c index cf737565ca9e..98c12dbcaa3c 100644 --- a/usr.sbin/certctl/certctl.c +++ b/usr.sbin/certctl/certctl.c @@ -1093,6 +1093,7 @@ int main(int argc, char *argv[]) { const char *command; + unsigned int i; int opt; while ((opt = getopt(argc, argv, "BcD:d:g:lL:M:no:Uv")) != -1) @@ -1155,8 +1156,8 @@ main(int argc, char *argv[]) set_defaults(); - for (unsigned i = 0; commands[i].name != NULL; i++) + for (i = 0; commands[i].name != NULL; i++) if (strcmp(command, commands[i].name) == 0) - exit(!!commands[i].func(argc, argv)); + exit(commands[i].func(argc, argv) == 0 ? 0 : 1); usage(); }home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a1f07e5.467ee.6a88bd7b>
