summaryrefslogtreecommitdiffstats
path: root/sys/dev/vinum/vinumstate.c
diff options
context:
space:
mode:
authordillon <dillon@FreeBSD.org>1999-01-27 20:09:21 +0000
committerdillon <dillon@FreeBSD.org>1999-01-27 20:09:21 +0000
commit0775a53cddb430a21259a269e0a7063ec0a1ee17 (patch)
treecb68685742f9729aa9c70ebcdc86355253673b77 /sys/dev/vinum/vinumstate.c
parent5c8fc4f2c43c35ac665320db4c7ab03e6193d120 (diff)
downloadFreeBSD-src-0775a53cddb430a21259a269e0a7063ec0a1ee17.zip
FreeBSD-src-0775a53cddb430a21259a269e0a7063ec0a1ee17.tar.gz
Fix warnings preparing for -Wall -Wcast-qual
Also disable one usb module in LINT due to fatal compilation errors, temporary.
Diffstat (limited to 'sys/dev/vinum/vinumstate.c')
-rw-r--r--sys/dev/vinum/vinumstate.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/vinum/vinumstate.c b/sys/dev/vinum/vinumstate.c
index 8d44fec..d71a561 100644
--- a/sys/dev/vinum/vinumstate.c
+++ b/sys/dev/vinum/vinumstate.c
@@ -33,7 +33,7 @@
* otherwise) arising in any way out of the use of this software, even if
* advised of the possibility of such damage.
*
- * $Id: vinumstate.c,v 2.10 1999/01/17 06:19:23 grog Exp grog $
+ * $Id: vinumstate.c,v 1.7 1999/01/21 00:40:32 grog Exp $
*/
#define REALLYKERNEL
@@ -204,7 +204,7 @@ set_sd_state(int sdno, enum sdstate newstate, enum setstateflags flags)
break;
default: /* other ones, only internal with force */
- if (flags & setstate_force == 0) /* no force? What's this? */
+ if ((flags & setstate_force) == 0) /* no force? What's this? */
return 0; /* don't do it */
}
}
@@ -396,7 +396,7 @@ update_plex_state(int plexno)
for (plexno = 0; plexno < vol->plexes; plexno++)
PLEX[vol->plex[plexno]].state = plex_up;
- } else if (vps & volplex_otherup == 0) { /* no other plexes up */
+ } else if ((vps & volplex_otherup) == 0) { /* no other plexes up */
int sdno;
plex->state = plex_up; /* we can call that up */
@@ -406,7 +406,7 @@ update_plex_state(int plexno)
}
} else
plex->state = plex_faulty; /* no, it's down */
- } else if (statemap & (sd_upstate | sd_rebornstate) == statemap) /* all up or reborn */
+ } else if ((statemap & (sd_upstate | sd_rebornstate)) == statemap) /* all up or reborn */
plex->state = plex_flaky;
else if (statemap & (sd_upstate | sd_rebornstate)) /* some up or reborn */
plex->state = plex_corrupt; /* corrupt */
OpenPOWER on IntegriCloud