Blame SOURCES/fuse-0001-More-parentheses.patch

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