diff options
| author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2026-05-28 12:28:22 +0000 |
|---|---|---|
| committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2026-05-28 12:28:22 +0000 |
| commit | 39f23af2ba4b845eb7f4ec7ae4079a67557eb63d (patch) | |
| tree | 8a3e00d209080acdb8e160af876ce2085e4e0b2b | |
| parent | 05039fda7ee12f3b857e55a461607b5af7b6c91f (diff) | |
certctl: Style nits
MFC after: 1 week
Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D57298
| -rw-r--r-- | usr.sbin/certctl/certctl.c | 5 |
1 files 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(); } |
