diff options
author | peter <peter@FreeBSD.org> | 2001-09-17 21:27:41 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2001-09-17 21:27:41 +0000 |
commit | e501f2bbb2a7cc73152c5573252dfe984e0e6bf9 (patch) | |
tree | c709b07204b229a2b9b7461f738e2946520a52a4 /sys | |
parent | 552fcc860ecbdfd54e6371cb31c446ecbbce9ecb (diff) | |
download | FreeBSD-src-e501f2bbb2a7cc73152c5573252dfe984e0e6bf9.zip FreeBSD-src-e501f2bbb2a7cc73152c5573252dfe984e0e6bf9.tar.gz |
Fix a fatal type mismatch (char *static_env; vs char static_env[]).
Submitted by: bde
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/subr_hints.c | 2 | ||||
-rw-r--r-- | sys/sys/systm.h | 17 |
2 files changed, 13 insertions, 6 deletions
diff --git a/sys/kern/subr_hints.c b/sys/kern/subr_hints.c index 9e04ef1..3ca9d5b 100644 --- a/sys/kern/subr_hints.c +++ b/sys/kern/subr_hints.c @@ -34,8 +34,6 @@ * Access functions for device resources. */ -extern char static_hints[]; /* by config for now */ -extern int hintmode; /* 0 = off. 1 = config, 2 = fallback */ static char *hintp; /* diff --git a/sys/sys/systm.h b/sys/sys/systm.h index e287a35..1f896a5 100644 --- a/sys/sys/systm.h +++ b/sys/sys/systm.h @@ -81,6 +81,18 @@ extern int maxusers; /* system tune hint */ #endif /* + * XXX the hints declarations are even more misplaced than most declarations + * in this file, since they are needed in one file (per arch) and only used + * in two files. + * XXX most of these variables should be const. + */ +extern int envmode; +extern int hintmode; /* 0 = off. 1 = config, 2 = fallback */ +extern char *kern_envp; +extern char static_env[]; +extern char static_hints[]; /* by config for now */ + +/* * General function declarations. */ @@ -90,7 +102,6 @@ struct mtx; struct proc; struct kse; struct thread; -struct timeval; struct tty; struct ucred; struct uio; @@ -182,11 +193,9 @@ int u_cansee __P((struct ucred *u1, struct ucred *u2)); char *getenv __P((const char *name)); int getenv_int __P((const char *name, int *data)); quad_t getenv_quad __P((const char *name, quad_t *data)); -extern char *kern_envp; -extern char *static_env; -extern int envmode; #ifdef APM_FIXUP_CALLTODO +struct timeval; void adjust_timeout_calltodo __P((struct timeval *time_change)); #endif /* APM_FIXUP_CALLTODO */ |