Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Aug 2012 14:34:30 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r239428 - stable/9/share/examples/kld/dyn_sysctl
Message-ID:  <201208201434.q7KEYUUt047499@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
 	}



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