diff options
author | bde <bde@FreeBSD.org> | 1995-03-16 18:17:34 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1995-03-16 18:17:34 +0000 |
commit | 289f11acb49b6dbb3081e09bf94a86f008f55814 (patch) | |
tree | e4952f18ac85eccbbd3d9b0f010098732d07fe6d /sys/kern/subr_rlist.c | |
parent | 4c4945abee9eabe3a2be340ba973ae861c21a3c6 (diff) | |
download | FreeBSD-src-289f11acb49b6dbb3081e09bf94a86f008f55814.zip FreeBSD-src-289f11acb49b6dbb3081e09bf94a86f008f55814.tar.gz |
Add and move declarations to fix all of the warnings from `gcc -Wimplicit'
(except in netccitt, netiso and netns) and most of the warnings from
`gcc -Wnested-externs'. Fix all the bugs found. There were no serious
ones.
Diffstat (limited to 'sys/kern/subr_rlist.c')
-rw-r--r-- | sys/kern/subr_rlist.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/kern/subr_rlist.c b/sys/kern/subr_rlist.c index ed4a5a9..c64b685 100644 --- a/sys/kern/subr_rlist.c +++ b/sys/kern/subr_rlist.c @@ -54,7 +54,7 @@ * functioning of this software, nor does the author assume any responsibility * for damages incurred with its use. * - * $Id: subr_rlist.c,v 1.7 1994/10/02 17:35:23 phk Exp $ + * $Id: subr_rlist.c,v 1.8 1995/01/31 06:48:53 davidg Exp $ */ #include <sys/param.h> @@ -64,10 +64,9 @@ #include <sys/rlist.h> #include <sys/proc.h> #include <vm/vm.h> +#include <vm/vm_kern.h> #include <vm/vm_map.h> -extern vm_map_t kernel_map; - /* * Resource lists. */ @@ -83,7 +82,6 @@ rlist_malloc() struct rlist *rl; int i; while( rlist_count < RLIST_MIN) { - extern vm_map_t kmem_map; int s = splhigh(); rl = (struct rlist *)kmem_malloc(kmem_map, NBPG, M_WAITOK); splx(s); |