svn commit: r239428 - stable/9/share/examples/kld/dyn_sysctl
Ed Maste
emaste at FreeBSD.org
Mon Aug 20 14:34:31 UTC 2012
Author: emaste
Date: Mon Aug 20 14:34:30 2012
New Revision: 239428
URL: http://svn.freebsd.org/changeset/base/239428
Log:
MFC r239130: Minor style(9) improvement
Modified:
stable/9/share/examples/kld/dyn_sysctl/dyn_sysctl.c
Directory Properties:
stable/9/share/examples/kld/dyn_sysctl/ (props changed)
Modified: stable/9/share/examples/kld/dyn_sysctl/dyn_sysctl.c
==============================================================================
--- stable/9/share/examples/kld/dyn_sysctl/dyn_sysctl.c Mon Aug 20 14:26:16 2012 (r239427)
+++ stable/9/share/examples/kld/dyn_sysctl/dyn_sysctl.c Mon Aug 20 14:34:30 2012 (r239428)
@@ -59,7 +59,7 @@ load(module_t mod, int cmd, void *arg)
error = 0;
switch (cmd) {
- case MOD_LOAD :
+ case MOD_LOAD:
/* Initialize the contexts */
printf("Initializing contexts and creating subtrees.\n\n");
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");
printf("3. (%p) /kern/dyn_sysctl bad (WRONG!)\n", &clist2);
break;
- case MOD_UNLOAD :
+ case MOD_UNLOAD:
printf("1. Try to free ctx1 (%p): ", &clist);
if (sysctl_ctx_free(&clist) != 0)
printf("failed: expected. Need to remove ctx3 first.\n");
@@ -153,7 +153,7 @@ load(module_t mod, int cmd, void *arg)
} else
printf("Ok\n");
break;
- default :
+ default:
error = EOPNOTSUPP;
break;
}
More information about the svn-src-stable
mailing list