From owner-svn-src-all@FreeBSD.ORG Mon Aug 20 14:34:31 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EF9521065670; Mon, 20 Aug 2012 14:34:30 +0000 (UTC) (envelope-from emaste@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id DA0738FC14; Mon, 20 Aug 2012 14:34:30 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q7KEYUZU047502; Mon, 20 Aug 2012 14:34:30 GMT (envelope-from emaste@svn.freebsd.org) Received: (from emaste@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q7KEYUUt047499; Mon, 20 Aug 2012 14:34:30 GMT (envelope-from emaste@svn.freebsd.org) Message-Id: <201208201434.q7KEYUUt047499@svn.freebsd.org> From: Ed Maste Date: Mon, 20 Aug 2012 14:34:30 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org X-SVN-Group: stable-9 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r239428 - stable/9/share/examples/kld/dyn_sysctl X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Aug 2012 14:34:31 -0000 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; }