From 571472f6ac1e63fda8ef49e44b83334ad5431aff Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sat, 11 Nov 2006 01:12:24 +0000 Subject: 2006-11-11 Samuel Thibault Fix ``assignment used as truth value'' warnings. * device/cons.c (cninit): Add parenthesis. * kern/bootstrap.c (copy_bootstrap): Likewise. * kern/printf.c (_doprnt): Likewise. * vm/vm_map.c (vm_map_lookup): Likewise. --- vm/vm_map.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vm') diff --git a/vm/vm_map.c b/vm/vm_map.c index 4f358bd..6f8fb34 100644 --- a/vm/vm_map.c +++ b/vm/vm_map.c @@ -4391,7 +4391,7 @@ kern_return_t vm_map_lookup(var_map, vaddr, fault_type, out_version, * it for all possible accesses. */ - if (*wired = (entry->wired_count != 0)) + if ((*wired = (entry->wired_count != 0))) prot = fault_type = entry->protection; /* -- cgit v1.2.3