summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_map.c
diff options
context:
space:
mode:
authordillon <dillon@FreeBSD.org>1999-01-28 00:57:57 +0000
committerdillon <dillon@FreeBSD.org>1999-01-28 00:57:57 +0000
commit975fba8a24263006afbbb4e38dd6bf515bdf4b43 (patch)
treeda30cbbe5e5f3c775029e38108f63aa8b8cd17b7 /sys/vm/vm_map.c
parent4cc7d69521756e89ce3e5ea28211fda13fc4c9ff (diff)
downloadFreeBSD-src-975fba8a24263006afbbb4e38dd6bf515bdf4b43.zip
FreeBSD-src-975fba8a24263006afbbb4e38dd6bf515bdf4b43.tar.gz
Fix warnings in preparation for adding -Wall -Wcast-qual to the
kernel compile
Diffstat (limited to 'sys/vm/vm_map.c')
-rw-r--r--sys/vm/vm_map.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c
index b1c4d82..7e5bc83 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.142 1999/01/24 06:04:52 dillon Exp $
+ * $Id: vm_map.c,v 1.143 1999/01/26 02:49:52 julian Exp $
*/
/*
@@ -2279,7 +2279,7 @@ vm_map_copy_entry(src_map, dst_map, src_entry, dst_entry)
/*
* Make a copy of the object.
*/
- if (src_object = src_entry->object.vm_object) {
+ if ((src_object = src_entry->object.vm_object) != NULL) {
if ((src_object->handle == NULL) &&
(src_object->type == OBJT_DEFAULT ||
@@ -2993,7 +2993,7 @@ vm_freeze_copyopts(object, froma, toa)
if (object->shadow_count > object->ref_count)
panic("vm_freeze_copyopts: sc > rc");
- while( robject = TAILQ_FIRST(&object->shadow_head)) {
+ while((robject = TAILQ_FIRST(&object->shadow_head)) != NULL) {
vm_pindex_t bo_pindex;
vm_page_t m_in, m_out;
@@ -3098,7 +3098,7 @@ DB_SHOW_COMMAND(map, vm_map_print)
db_iprintf(" prot=%x/%x/%s",
entry->protection,
entry->max_protection,
- inheritance_name[entry->inheritance]);
+ inheritance_name[(int)(unsigned char)entry->inheritance]);
if (entry->wired_count != 0)
db_printf(", wired");
}
OpenPOWER on IntegriCloud