Fix query of IMMEDIATE bool values (copy & pasto).

This commit is contained in:
martin 2012-03-21 14:51:36 +00:00
parent d703a14882
commit 834e2aaa79
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: kern_sysctl.c,v 1.233 2011/11/19 22:51:25 tls Exp $ */ /* $NetBSD: kern_sysctl.c,v 1.234 2012/03/21 14:51:36 martin Exp $ */
/*- /*-
* Copyright (c) 2003, 2007, 2008 The NetBSD Foundation, Inc. * Copyright (c) 2003, 2007, 2008 The NetBSD Foundation, Inc.
@ -68,7 +68,7 @@
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: kern_sysctl.c,v 1.233 2011/11/19 22:51:25 tls Exp $"); __KERNEL_RCSID(0, "$NetBSD: kern_sysctl.c,v 1.234 2012/03/21 14:51:36 martin Exp $");
#include "opt_defcorename.h" #include "opt_defcorename.h"
#include "ksyms.h" #include "ksyms.h"
@ -1182,7 +1182,7 @@ sysctl_create(SYSCTLFN_ARGS)
} else if (flags & CTLFLAG_IMMEDIATE) { } else if (flags & CTLFLAG_IMMEDIATE) {
switch (type) { switch (type) {
case CTLTYPE_BOOL: case CTLTYPE_BOOL:
node->sysctl_idata = nnode.sysctl_bdata; node->sysctl_bdata = nnode.sysctl_bdata;
break; break;
case CTLTYPE_INT: case CTLTYPE_INT:
node->sysctl_idata = nnode.sysctl_idata; node->sysctl_idata = nnode.sysctl_idata;