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