Source-Changes-HG archive

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

[src/trunk]: src/sys/kern sysctl_lookup: use "d" rather than "rnode->sysctl_d...



details:   https://anonhg.NetBSD.org/src/rev/4d0918b0f4c5
branches:  trunk
changeset: 588875:4d0918b0f4c5
user:      yamt <yamt%NetBSD.org@localhost>
date:      Sun Mar 05 00:32:43 2006 +0000

description:
sysctl_lookup: use "d" rather than "rnode->sysctl_data" after
"d = rnode->sysctl_data".

diffstat:

 sys/kern/kern_sysctl.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r a59b702b8c81 -r 4d0918b0f4c5 sys/kern/kern_sysctl.c
--- a/sys/kern/kern_sysctl.c    Sun Mar 05 00:08:32 2006 +0000
+++ b/sys/kern/kern_sysctl.c    Sun Mar 05 00:32:43 2006 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_sysctl.c,v 1.189 2006/02/24 19:26:50 drochner Exp $       */
+/*     $NetBSD: kern_sysctl.c,v 1.190 2006/03/05 00:32:43 yamt Exp $   */
 
 /*-
  * Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -75,7 +75,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_sysctl.c,v 1.189 2006/02/24 19:26:50 drochner Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_sysctl.c,v 1.190 2006/03/05 00:32:43 yamt Exp $");
 
 #include "opt_defcorename.h"
 #include "opt_insecure.h"
@@ -1532,9 +1532,9 @@
                 * looks good, so pop it into place and zero the rest.
                 */
                if (len > 0)
-                       memcpy(rnode->sysctl_data, newbuf, len);
+                       memcpy(d, newbuf, len);
                if (sz != len)
-                       memset((char*)rnode->sysctl_data + len, 0, sz - len);
+                       memset((char*)d + len, 0, sz - len);
                free(newbuf, M_SYSCTLDATA);
                break;
        }



Home | Main Index | Thread Index | Old Index