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

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