git: 39f23af2ba4b - main - certctl: Style nits
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 28 May 2026 12:28:29 UTC
The branch main has been updated by des:
URL: https://cgit.FreeBSD.org/src/commit/?id=39f23af2ba4b845eb7f4ec7ae4079a67557eb63d
commit 39f23af2ba4b845eb7f4ec7ae4079a67557eb63d
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-05-28 12:28:22 +0000
certctl: Style nits
MFC after: 1 week
Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D57298
---
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 0a07703bf37b..462f6c1730a9 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();
}