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