summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2002-03-14 20:31:32 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2002-03-14 20:31:32 +0000
commit664594592b027192aadee83827fa39d430c954d0 (patch)
tree83df829c370f8eb63a310ab1cd55864e752ccd5c /sys/kern
parent5d9413e62b10c038c2061d9b5cc7f27ea22b1653 (diff)
remove ambiguity in version,ostype,osversion,osrelease and their constanity, they are and declarre 'em accordingly also removing private externies of those
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/init_main.c4
-rw-r--r--sys/kern/kern_sysctl.c3
2 files changed, 3 insertions, 4 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c
index ed9437a6907..d46f5117eaa 100644
--- a/sys/kern/init_main.c
+++ b/sys/kern/init_main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: init_main.c,v 1.93 2002/03/14 01:27:04 millert Exp $ */
+/* $OpenBSD: init_main.c,v 1.94 2002/03/14 20:31:31 mickey Exp $ */
/* $NetBSD: init_main.c,v 1.84.4.1 1996/06/02 09:08:06 mrg Exp $ */
/*
@@ -98,7 +98,7 @@
extern void nfs_init(void);
#endif
-char copyright[] =
+const char copyright[] =
"Copyright (c) 1982, 1986, 1989, 1991, 1993\n"
"\tThe Regents of the University of California. All rights reserved.\n"
"Copyright (c) 1995-2002 OpenBSD. All rights reserved. http://www.OpenBSD.org\n";
diff --git a/sys/kern/kern_sysctl.c b/sys/kern/kern_sysctl.c
index b0cabd1e641..99b50f6d300 100644
--- a/sys/kern/kern_sysctl.c
+++ b/sys/kern/kern_sysctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_sysctl.c,v 1.63 2002/03/14 19:42:54 mickey Exp $ */
+/* $OpenBSD: kern_sysctl.c,v 1.64 2002/03/14 20:31:31 mickey Exp $ */
/* $NetBSD: kern_sysctl.c,v 1.17 1996/05/20 17:49:05 mrg Exp $ */
/*-
@@ -241,7 +241,6 @@ kern_sysctl(name, namelen, oldp, oldlenp, newp, newlen, p)
struct proc *p;
{
int error, level, inthostid, oldsgap;
- extern char ostype[], osrelease[], osversion[];
extern int somaxconn, sominconn;
extern int usermount, nosuidcoredump;
extern long cp_time[CPUSTATES];