From: guraga Date: Tue, 28 Mar 2017 15:57:23 +0000 (+0700) Subject: hello.c: don't use constant instead of magic number X-Git-Tag: fuse-3.0.1~25 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=aa1460ff430169f6375567a7dce40ce81e39c667;p=qemu-gpiodev%2Flibfuse.git hello.c: don't use constant instead of magic number --- 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;