From a40e0249d4e2495009cf3fb552bc428d0a8a8676 Mon Sep 17 00:00:00 2001 From: dillon Date: Wed, 27 Jan 1999 21:50:00 +0000 Subject: Fix warnings in preparation for adding -Wall -Wcast-qual to the kernel compile --- sys/fs/cd9660/cd9660_node.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/fs/cd9660/cd9660_node.c') diff --git a/sys/fs/cd9660/cd9660_node.c b/sys/fs/cd9660/cd9660_node.c index edfd66c..9640d6e 100644 --- a/sys/fs/cd9660/cd9660_node.c +++ b/sys/fs/cd9660/cd9660_node.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)cd9660_node.c 8.2 (Berkeley) 1/23/94 - * $Id: cd9660_node.c,v 1.25 1998/02/09 06:09:18 eivind Exp $ + * $Id: cd9660_node.c,v 1.26 1999/01/02 11:34:54 bde Exp $ */ #include @@ -120,7 +120,7 @@ cd9660_ihashins(ip) simple_lock(&cd9660_ihash_slock); ipp = &isohashtbl[INOHASH(ip->i_dev, ip->i_number)]; - if (iq = *ipp) + if ((iq = *ipp) != NULL) iq->i_prev = &ip->i_next; ip->i_next = iq; ip->i_prev = ipp; @@ -140,7 +140,7 @@ cd9660_ihashrem(ip) register struct iso_node *iq; simple_lock(&cd9660_ihash_slock); - if (iq = ip->i_next) + if ((iq = ip->i_next) != NULL) iq->i_prev = ip->i_prev; *ip->i_prev = iq; #ifdef DIAGNOSTIC -- cgit v1.1