Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Aug 2012 13:11:48 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r239130 - head/share/examples/kld/dyn_sysctl
Message-ID:  <201208071311.q77DBmi6064804@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: emaste
Date: Tue Aug  7 13:11:47 2012
New Revision: 239130
URL: http://svn.freebsd.org/changeset/base/239130

Log:
  Minor style(9) improvement

Modified:
  head/share/examples/kld/dyn_sysctl/dyn_sysctl.c

Modified: head/share/examples/kld/dyn_sysctl/dyn_sysctl.c
==============================================================================
--- head/share/examples/kld/dyn_sysctl/dyn_sysctl.c	Tue Aug  7 12:45:46 2012	(r239129)
+++ head/share/examples/kld/dyn_sysctl/dyn_sysctl.c	Tue Aug  7 13:11:47 2012	(r239130)
@@ -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;
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201208071311.q77DBmi6064804>