From b7243c0b5a9e8f324ff14848f11c925a1167c19e Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Mon, 26 Jun 1995 20:40:26 +0000 Subject: (diskfs_shutdown): Fix parentheses on bitwise tests. --- libdiskfs/shutdown.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libdiskfs') diff --git a/libdiskfs/shutdown.c b/libdiskfs/shutdown.c index 293941f4..7427bbe4 100644 --- a/libdiskfs/shutdown.c +++ b/libdiskfs/shutdown.c @@ -78,7 +78,7 @@ diskfs_shutdown (int flags) /* First, see if there are outstanding user ports. */ nports = ports_count_class (diskfs_protid_class); - if ((flags & FSYS_GOAWAY_FORCE == 0) + if (((flags & FSYS_GOAWAY_FORCE) == 0) && (nports || diskfs_pager_users ())) { ports_enable_class (diskfs_protid_class); @@ -86,7 +86,7 @@ diskfs_shutdown (int flags) return EBUSY; } - if (flags & FSYS_GOAWAY_NOSYNC == 0) + if ((flags & FSYS_GOAWAY_NOSYNC) == 0) { diskfs_shutdown_pager (); diskfs_set_hypermetadata (1, 1); -- cgit v1.2.3