summaryrefslogtreecommitdiff
path: root/sys/kern/kern_sysctl.c
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2002-03-14 19:42:55 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2002-03-14 19:42:55 +0000
commit90b7e229b281921a361c0ce4dec612a399ed6d29 (patch)
tree8543dc32bae1bda314139a8761644860ac286d41 /sys/kern/kern_sysctl.c
parent5da7f7c9f09746f6c05251074b09017090804b6c (diff)
version[] is externed in the systm.h and give it some const
Diffstat (limited to 'sys/kern/kern_sysctl.c')
-rw-r--r--sys/kern/kern_sysctl.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/kern/kern_sysctl.c b/sys/kern/kern_sysctl.c
index 8bb61b8c666..b0cabd1e641 100644
--- a/sys/kern/kern_sysctl.c
+++ b/sys/kern/kern_sysctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_sysctl.c,v 1.62 2002/03/01 02:52:51 provos Exp $ */
+/* $OpenBSD: kern_sysctl.c,v 1.63 2002/03/14 19:42:54 mickey Exp $ */
/* $NetBSD: kern_sysctl.c,v 1.17 1996/05/20 17:49:05 mrg Exp $ */
/*-
@@ -241,7 +241,7 @@ kern_sysctl(name, namelen, oldp, oldlenp, newp, newlen, p)
struct proc *p;
{
int error, level, inthostid, oldsgap;
- extern char ostype[], osrelease[], osversion[], version[];
+ extern char ostype[], osrelease[], osversion[];
extern int somaxconn, sominconn;
extern int usermount, nosuidcoredump;
extern long cp_time[CPUSTATES];
@@ -714,7 +714,7 @@ sysctl_rdstring(oldp, oldlenp, newp, str)
void *oldp;
size_t *oldlenp;
void *newp;
- char *str;
+ const char *str;
{
int len, error = 0;
@@ -765,7 +765,8 @@ int
sysctl_rdstruct(oldp, oldlenp, newp, sp, len)
void *oldp;
size_t *oldlenp;
- void *newp, *sp;
+ void *newp;
+ const void *sp;
int len;
{
int error = 0;