Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/compat/common Wrap sysctl_teardown(&compat_clog) with th...



details:   https://anonhg.NetBSD.org/src/rev/2ae426fb2939
branches:  trunk
changeset: 785084:2ae426fb2939
user:      skrll <skrll%NetBSD.org@localhost>
date:      Thu Feb 21 10:22:04 2013 +0000

description:
Wrap sysctl_teardown(&compat_clog) with the appropriate #if defined()s

diffstat:

 sys/compat/common/compat_mod.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r e2be9677f04b -r 2ae426fb2939 sys/compat/common/compat_mod.c
--- a/sys/compat/common/compat_mod.c    Thu Feb 21 09:25:30 2013 +0000
+++ b/sys/compat/common/compat_mod.c    Thu Feb 21 10:22:04 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: compat_mod.c,v 1.16 2013/02/21 01:39:54 pgoyette Exp $ */
+/*     $NetBSD: compat_mod.c,v 1.17 2013/02/21 10:22:04 skrll Exp $    */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: compat_mod.c,v 1.16 2013/02/21 01:39:54 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: compat_mod.c,v 1.17 2013/02/21 10:22:04 skrll Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_compat_netbsd.h"
@@ -360,5 +360,7 @@
 compat_sysctl_fini(void)
 {
  
+#if defined(COMPAT_09) || defined(COMPAT_43) || defined(COMPAT_50)
         sysctl_teardown(&compat_clog);
+#endif
 }



Home | Main Index | Thread Index | Old Index