Module Name: src
Committed By: skrll
Date: Thu Feb 21 10:22:04 UTC 2013
Modified Files:
src/sys/compat/common: compat_mod.c
Log Message:
Wrap sysctl_teardown(&compat_clog) with the appropriate #if defined()s
To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/sys/compat/common/compat_mod.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/compat/common/compat_mod.c
diff -u src/sys/compat/common/compat_mod.c:1.16 src/sys/compat/common/compat_mod.c:1.17
--- src/sys/compat/common/compat_mod.c:1.16 Thu Feb 21 01:39:54 2013
+++ src/sys/compat/common/compat_mod.c Thu Feb 21 10:22:04 2013
@@ -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 @@ void
compat_sysctl_fini(void)
{
+#if defined(COMPAT_09) || defined(COMPAT_43) || defined(COMPAT_50)
sysctl_teardown(&compat_clog);
+#endif
}