Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Add some needed __UNCONST



details:   https://anonhg.NetBSD.org/src/rev/e21617e5cc7b
branches:  trunk
changeset: 765366:e21617e5cc7b
user:      joerg <joerg%NetBSD.org@localhost>
date:      Tue May 24 16:39:56 2011 +0000

description:
Add some needed __UNCONST

diffstat:

 sys/kern/init_sysctl.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (43 lines):

diff -r 8a869f749df4 -r e21617e5cc7b sys/kern/init_sysctl.c
--- a/sys/kern/init_sysctl.c    Tue May 24 16:38:25 2011 +0000
+++ b/sys/kern/init_sysctl.c    Tue May 24 16:39:56 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: init_sysctl.c,v 1.180 2011/04/02 05:07:57 rmind Exp $ */
+/*     $NetBSD: init_sysctl.c,v 1.181 2011/05/24 16:39:56 joerg Exp $ */
 
 /*-
  * Copyright (c) 2003, 2007, 2008, 2009 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: init_sysctl.c,v 1.180 2011/04/02 05:07:57 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: init_sysctl.c,v 1.181 2011/05/24 16:39:56 joerg Exp $");
 
 #include "opt_sysv.h"
 #include "opt_compat_netbsd.h"
@@ -213,13 +213,13 @@
                       CTLFLAG_PERMANENT,
                       CTLTYPE_STRING, "ostype",
                       SYSCTL_DESCR("Operating system type"),
-                      NULL, 0, &ostype, 0,
+                      NULL, 0, __UNCONST(&ostype), 0,
                       CTL_KERN, KERN_OSTYPE, CTL_EOL);
        sysctl_createv(clog, 0, NULL, NULL,
                       CTLFLAG_PERMANENT,
                       CTLTYPE_STRING, "osrelease",
                       SYSCTL_DESCR("Operating system release"),
-                      NULL, 0, &osrelease, 0,
+                      NULL, 0, __UNCONST(&osrelease), 0,
                       CTL_KERN, KERN_OSRELEASE, CTL_EOL);
        sysctl_createv(clog, 0, NULL, NULL,
                       CTLFLAG_PERMANENT|CTLFLAG_IMMEDIATE,
@@ -231,7 +231,7 @@
                       CTLFLAG_PERMANENT,
                       CTLTYPE_STRING, "version",
                       SYSCTL_DESCR("Kernel version"),
-                      NULL, 0, &version, 0,
+                      NULL, 0, __UNCONST(&version), 0,
                       CTL_KERN, KERN_VERSION, CTL_EOL);
        sysctl_createv(clog, 0, NULL, NULL,
                       CTLFLAG_PERMANENT|CTLFLAG_READWRITE,



Home | Main Index | Thread Index | Old Index