Blame SOURCES/autofs-5.0.7-fix-a-couple-of-compiler-warnings.patch

304803
autofs-5.0.7 - fix a couple of compiler warnings
304803
304803
From: Ian Kent <ikent@redhat.com>
304803
304803
Quiet a couple of ompiler warnings by making intention explicit using brackets.
304803
---
304803
 CHANGELOG            |    1 +
304803
 modules/mount_bind.c |    2 +-
304803
 modules/mount_nfs.c  |    4 ++--
304803
 3 files changed, 4 insertions(+), 3 deletions(-)
304803
304803
diff --git a/CHANGELOG b/CHANGELOG
304803
index 37eac72..7749f01 100644
304803
--- a/CHANGELOG
304803
+++ b/CHANGELOG
304803
@@ -54,6 +54,7 @@
304803
 - misc man page fixes.
304803
 - fix add null check in parse_server_string().
304803
 - don't override LDFLAGS in make rules.
304803
+- fix a couple of compiler warnings.
304803
 
304803
 25/07/2012 autofs-5.0.7
304803
 =======================
304803
diff --git a/modules/mount_bind.c b/modules/mount_bind.c
304803
index 61a773c..2b70104 100644
304803
--- a/modules/mount_bind.c
304803
+++ b/modules/mount_bind.c
304803
@@ -208,7 +208,7 @@ int mount_mount(struct autofs_point *ap, const char *root, const char *name, int
304803
 			      MODPREFIX
304803
 			      "failed to create local mount %s -> %s",
304803
 			      fullpath, what);
304803
-			if (ap->flags & MOUNT_FLAG_GHOST && !status)
304803
+			if ((ap->flags & MOUNT_FLAG_GHOST) && !status)
304803
 				if (mkdir_path(fullpath, 0555) && errno != EEXIST) {
304803
 					char *estr = strerror_r(errno, buf, MAX_ERR_BUF);
304803
 					error(ap->logopt,
304803
diff --git a/modules/mount_nfs.c b/modules/mount_nfs.c
304803
index 3d2ccea..adf2002 100644
304803
--- a/modules/mount_nfs.c
304803
+++ b/modules/mount_nfs.c
304803
@@ -202,8 +202,8 @@ int mount_mount(struct autofs_point *ap, const char *root, const char *name, int
304803
 	 */
304803
 	if ((hosts && !hosts->next) &&
304803
 	    mount_default_proto == 4 &&
304803
-	    vers & NFS_VERS_MASK != 0 &&
304803
-	    vers & NFS4_VERS_MASK != 0) {
304803
+	    (vers & NFS_VERS_MASK) != 0 &&
304803
+	    (vers & NFS4_VERS_MASK) != 0) {
304803
 		unsigned int v4_probe_ok = 0;
304803
 		struct host *tmp = new_host(hosts->name,
304803
 					    hosts->addr, hosts->addr_len,