summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_map.c
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1994-08-18 22:36:09 +0000
committerwollman <wollman@FreeBSD.org>1994-08-18 22:36:09 +0000
commitf9fc827448679cf1d41e56512c34521bf06ce37a (patch)
tree6b83fdf6eb5926c2f3d175a83d24bf5a2611a012 /sys/vm/vm_map.c
parent44fc281f480837836035856eb0af25443f0d2146 (diff)
downloadFreeBSD-src-f9fc827448679cf1d41e56512c34521bf06ce37a.zip
FreeBSD-src-f9fc827448679cf1d41e56512c34521bf06ce37a.tar.gz
Fix up some sloppy coding practices:
- Delete redundant declarations. - Add -Wredundant-declarations to Makefile.i386 so they don't come back. - Delete sloppy COMMON-style declarations of uninitialized data in header files. - Add a few prototypes. - Clean up warnings resulting from the above. NB: ioconf.c will still generate a redundant-declaration warning, which is unavoidable unless somebody volunteers to make `config' smarter.
Diffstat (limited to 'sys/vm/vm_map.c')
-rw-r--r--sys/vm/vm_map.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c
index 8ad42fa..48c6129 100644
--- a/sys/vm/vm_map.c
+++ b/sys/vm/vm_map.c
@@ -61,7 +61,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
- * $Id: vm_map.c,v 1.3 1994/08/02 07:55:25 davidg Exp $
+ * $Id: vm_map.c,v 1.4 1994/08/04 19:40:47 davidg Exp $
*/
/*
@@ -141,7 +141,6 @@ vm_map_entry_t kentry_free;
vm_map_t kmap_free;
int kentry_count;
-vm_map_t kmap_free;
static vm_offset_t mapvm=0;
static int mapvmpgcnt=0;
@@ -241,7 +240,6 @@ vm_map_t vm_map_create(pmap, min, max, pageable)
boolean_t pageable;
{
register vm_map_t result;
- extern vm_map_t kmem_map;
if (kmem_map == NULL) {
result = kmap_free;
@@ -292,7 +290,6 @@ vm_map_init(map, min, max, pageable)
*/
static struct vm_map_entry *mappool;
static int mappoolcnt;
-void vm_map_entry_dispose(vm_map_t map, vm_map_entry_t entry);
vm_map_entry_t
vm_map_entry_create(map)
@@ -371,7 +368,6 @@ vm_map_entry_dispose(map, entry)
vm_map_t map;
vm_map_entry_t entry;
{
- extern vm_map_t kernel_map, kmem_map, pager_map;
int s;
if (map == kernel_map || map == kmem_map || map == pager_map ||
OpenPOWER on IntegriCloud