bb53a3
From: Peter Lemenkov <lemenkov@gmail.com>
bb53a3
Date: Mon, 9 Aug 2010 12:10:40 +0400
bb53a3
Subject: [PATCH] More parentheses
bb53a3
bb53a3
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
bb53a3
bb53a3
diff --git a/lib/fuse.c b/lib/fuse.c
bb53a3
index d1d873a..ca1709c 100644
bb53a3
--- a/lib/fuse.c
bb53a3
+++ b/lib/fuse.c
bb53a3
@@ -1529,17 +1529,15 @@ static int fuse_compat_open(struct fuse_fs *fs, const char *path,
bb53a3
 {
bb53a3
 	int err;
bb53a3
 	if (!fs->compat || fs->compat >= 25)
bb53a3
-		err = fs->op.open(path, fi);
bb53a3
+		err = (fs->op.open)(path, fi);
bb53a3
 	else if (fs->compat == 22) {
bb53a3
 		struct fuse_file_info_compat tmp;
bb53a3
 		memcpy(&tmp, fi, sizeof(tmp));
bb53a3
-		err = ((struct fuse_operations_compat22 *) &fs->op)->open(path,
bb53a3
-									  &tmp);
bb53a3
+		err = (((struct fuse_operations_compat22 *) &fs->op)->open)(path, &tmp);
bb53a3
 		memcpy(fi, &tmp, sizeof(tmp));
bb53a3
 		fi->fh = tmp.fh;
bb53a3
 	} else
bb53a3
-		err = ((struct fuse_operations_compat2 *) &fs->op)
bb53a3
-			->open(path, fi->flags);
bb53a3
+		err = (((struct fuse_operations_compat2 *) &fs->op)->open)(path, fi->flags);
bb53a3
 	return err;
bb53a3
 }
bb53a3
 
bb53a3
diff --git a/lib/fuse_lowlevel.c b/lib/fuse_lowlevel.c
bb53a3
index ff03c63..255f733 100644
bb53a3
--- a/lib/fuse_lowlevel.c
bb53a3
+++ b/lib/fuse_lowlevel.c
bb53a3
@@ -1211,7 +1211,7 @@ static void do_open(fuse_req_t req, fuse_ino_t nodeid, const void *inarg)
bb53a3
 	fi.flags = arg->flags;
bb53a3
 
bb53a3
 	if (req->f->op.open)
bb53a3
-		req->f->op.open(req, nodeid, &fi);
bb53a3
+		(req->f->op.open)(req, nodeid, &fi);
bb53a3
 	else
bb53a3
 		fuse_reply_open(req, &fi);
bb53a3
 }