Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Rename old/new to match syscalls.master.



details:   https://anonhg.NetBSD.org/src/rev/39e1b9a69ec7
branches:  trunk
changeset: 329883:39e1b9a69ec7
user:      joerg <joerg%NetBSD.org@localhost>
date:      Thu Jun 12 22:10:04 2014 +0000

description:
Rename old/new to match syscalls.master.

diffstat:

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

diffs (45 lines):

diff -r 9f3ac3b1cb8d -r 39e1b9a69ec7 sys/kern/kern_sysctl.c
--- a/sys/kern/kern_sysctl.c    Thu Jun 12 21:42:26 2014 +0000
+++ b/sys/kern/kern_sysctl.c    Thu Jun 12 22:10:04 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_sysctl.c,v 1.250 2014/05/16 12:22:32 martin Exp $ */
+/*     $NetBSD: kern_sysctl.c,v 1.251 2014/06/12 22:10:04 joerg Exp $  */
 
 /*-
  * Copyright (c) 2003, 2007, 2008 The NetBSD Foundation, Inc.
@@ -68,7 +68,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_sysctl.c,v 1.250 2014/05/16 12:22:32 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_sysctl.c,v 1.251 2014/06/12 22:10:04 joerg Exp $");
 
 #include "opt_defcorename.h"
 #include "ksyms.h"
@@ -298,14 +298,14 @@
 
        ktrmib(name, SCARG(uap, namelen));
 
-       sysctl_lock(SCARG(uap, new) != NULL);
+       sysctl_lock(SCARG(uap, newv) != NULL);
 
        /*
         * do sysctl work (NULL means main built-in default tree)
         */
        error = sysctl_dispatch(&name[0], SCARG(uap, namelen),
-                               SCARG(uap, old), &oldlen,
-                               SCARG(uap, new), SCARG(uap, newlen),
+                               SCARG(uap, oldv), &oldlen,
+                               SCARG(uap, newv), SCARG(uap, newlen),
                                &name[0], l, NULL);
 
        /*
@@ -328,7 +328,7 @@
         * if the only problem is that we weren't given enough space,
         * that's an ENOMEM error
         */
-       if (error == 0 && SCARG(uap, old) != NULL && savelen < oldlen)
+       if (error == 0 && SCARG(uap, oldv) != NULL && savelen < oldlen)
                error = ENOMEM;
 
        return (error);



Home | Main Index | Thread Index | Old Index