9a0615
From 22ba14e45e84e0bd12a9ab1c9d0460b9ae27c10c Mon Sep 17 00:00:00 2001
9a0615
From: Peter Lemenkov <lemenkov@gmail.com>
9a0615
Date: Mon, 9 Aug 2010 12:10:40 +0400
9a0615
Subject: [PATCH 1/1] More parentheses
9a0615
9a0615
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
9a0615
---
9a0615
 lib/fuse.c          |    8 +++-----
9a0615
 lib/fuse_lowlevel.c |    2 +-
9a0615
 2 files changed, 4 insertions(+), 6 deletions(-)
9a0615
9a0615
diff --git a/lib/fuse.c b/lib/fuse.c
9a0615
index d511964..328ebba 100644
9a0615
--- a/lib/fuse.c
9a0615
+++ b/lib/fuse.c
9a0615
@@ -991,17 +991,15 @@ static int fuse_compat_open(struct fuse_fs *fs, const char *path,
9a0615
 {
9a0615
 	int err;
9a0615
 	if (!fs->compat || fs->compat >= 25)
9a0615
-		err = fs->op.open(path, fi);
9a0615
+		err = (fs->op.open)(path, fi);
9a0615
 	else if (fs->compat == 22) {
9a0615
 		struct fuse_file_info_compat tmp;
9a0615
 		memcpy(&tmp, fi, sizeof(tmp));
9a0615
-		err = ((struct fuse_operations_compat22 *) &fs->op)->open(path,
9a0615
-									  &tmp);
9a0615
+		err = (((struct fuse_operations_compat22 *) &fs->op)->open)(path, &tmp);
9a0615
 		memcpy(fi, &tmp, sizeof(tmp));
9a0615
 		fi->fh = tmp.fh;
9a0615
 	} else
9a0615
-		err = ((struct fuse_operations_compat2 *) &fs->op)
9a0615
-			->open(path, fi->flags);
9a0615
+		err = (((struct fuse_operations_compat2 *) &fs->op)->open)(path, fi->flags);
9a0615
 	return err;
9a0615
 }
9a0615
 
9a0615
diff --git a/lib/fuse_lowlevel.c b/lib/fuse_lowlevel.c
9a0615
index c86a910..4f19d61 100644
9a0615
--- a/lib/fuse_lowlevel.c
9a0615
+++ b/lib/fuse_lowlevel.c
9a0615
@@ -716,7 +716,7 @@ static void do_open(fuse_req_t req, fuse_ino_t nodeid, const void *inarg)
9a0615
 	fi.flags = arg->flags;
9a0615
 
9a0615
 	if (req->f->op.open)
9a0615
-		req->f->op.open(req, nodeid, &fi);
9a0615
+		(req->f->op.open)(req, nodeid, &fi);
9a0615
 	else
9a0615
 		fuse_reply_open(req, &fi);
9a0615
 }
9a0615
-- 
9a0615
1.7.9.3
9a0615