Minor style(9) improvement
This commit is contained in:
parent
1710852ebd
commit
6337d82014
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=239130
@ -59,7 +59,7 @@ load(module_t mod, int cmd, void *arg)
|
|||||||
|
|
||||||
error = 0;
|
error = 0;
|
||||||
switch (cmd) {
|
switch (cmd) {
|
||||||
case MOD_LOAD :
|
case MOD_LOAD:
|
||||||
/* Initialize the contexts */
|
/* Initialize the contexts */
|
||||||
printf("Initializing contexts and creating subtrees.\n\n");
|
printf("Initializing contexts and creating subtrees.\n\n");
|
||||||
sysctl_ctx_init(&clist);
|
sysctl_ctx_init(&clist);
|
||||||
@ -123,7 +123,7 @@ load(module_t mod, int cmd, void *arg)
|
|||||||
OID_AUTO, "string_c", CTLFLAG_RD, c, 0, "shouldn't panic");
|
OID_AUTO, "string_c", CTLFLAG_RD, c, 0, "shouldn't panic");
|
||||||
printf("3. (%p) /kern/dyn_sysctl bad (WRONG!)\n", &clist2);
|
printf("3. (%p) /kern/dyn_sysctl bad (WRONG!)\n", &clist2);
|
||||||
break;
|
break;
|
||||||
case MOD_UNLOAD :
|
case MOD_UNLOAD:
|
||||||
printf("1. Try to free ctx1 (%p): ", &clist);
|
printf("1. Try to free ctx1 (%p): ", &clist);
|
||||||
if (sysctl_ctx_free(&clist) != 0)
|
if (sysctl_ctx_free(&clist) != 0)
|
||||||
printf("failed: expected. Need to remove ctx3 first.\n");
|
printf("failed: expected. Need to remove ctx3 first.\n");
|
||||||
@ -153,7 +153,7 @@ load(module_t mod, int cmd, void *arg)
|
|||||||
} else
|
} else
|
||||||
printf("Ok\n");
|
printf("Ok\n");
|
||||||
break;
|
break;
|
||||||
default :
|
default:
|
||||||
error = EOPNOTSUPP;
|
error = EOPNOTSUPP;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user