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. --- device/cons.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'device/cons.c') diff --git a/device/cons.c b/device/cons.c index a3d380d..07a1958 100644 --- a/device/cons.c +++ b/device/cons.c @@ -97,7 +97,7 @@ cninit() /* * Found a console, initialize it. */ - if (cp = cn_tab) { + if ((cp = cn_tab)) { /* * Initialize as console */ -- cgit v1.2.3