Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177854108
D57298.1795435925.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
609 B
Referenced Files
None
Subscribers
None
D57298.1795435925.diff
View Options
diff --git a/usr.sbin/certctl/certctl.c b/usr.sbin/certctl/certctl.c
--- a/usr.sbin/certctl/certctl.c
+++ b/usr.sbin/certctl/certctl.c
@@ -1093,6 +1093,7 @@
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 @@
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();
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 23, 12:12 PM (22 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41911201
Default Alt Text
D57298.1795435925.diff (609 B)
Attached To
Mode
D57298: certctl: Style nits
Attached
Detach File
Event Timeline