diff options
author | guraga <rulumasi@dodsi.com> | 2017-03-28 22:57:23 +0700 |
---|---|---|
committer | Nikolaus Rath <Nikolaus@rath.org> | 2017-03-28 08:57:23 -0700 |
commit | aa1460ff430169f6375567a7dce40ce81e39c667 (patch) | |
tree | a1e275d8718d4f3a1135b2aae5e0a147747e8996 /example | |
parent | 77dee679eb39dc21c2cc9400e846b5c49292d2e3 (diff) |
hello.c: don't use constant instead of magic number
Diffstat (limited to 'example')
-rw-r--r-- | example/hello.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/example/hello.c b/example/hello.c index 67932e0..8dec6ad 100644 --- a/example/hello.c +++ b/example/hello.c @@ -105,7 +105,7 @@ static int hello_open(const char *path, struct fuse_file_info *fi) if (strcmp(path+1, options.filename) != 0) return -ENOENT; - if ((fi->flags & 3) != O_RDONLY) + if ((fi->flags & O_ACCMODE) != O_RDONLY) return -EACCES; return 0; |