summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@suse.cz>2011-12-05 13:31:42 +0100
committerMiklos Szeredi <mszeredi@suse.cz>2011-12-05 13:31:42 +0100
commit6b12905b10b15c046b825c48eb8b9e677952d607 (patch)
treed5eb28e98c27984762c86fe79265f4ec761635a0
parentae43094c13ecf49e0b738bbda633cf193c7b3670 (diff)
downloadfuse-6b12905b10b15c046b825c48eb8b9e677952d607.tar.gz
Make lock argument of fuse_reply_lock const
Low level API: lock argument of fuse_reply_lock should have a 'const' qualifier. Reported by Shachar Sharon
-rw-r--r--ChangeLog5
-rw-r--r--include/fuse_lowlevel.h2
-rw-r--r--lib/fuse_lowlevel.c2
3 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 955813b..64efa5f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-12-05 Miklos Szeredi <miklos@szeredi.hu>
+
+ * Low level API: lock argument of fuse_reply_lock should have a
+ 'const' qualifier. Reported by Shachar Sharon
+
2011-10-13 Miklos Szeredi <miklos@szeredi.hu>
* Reply to request with ENOMEM in case of failure to allocate
diff --git a/include/fuse_lowlevel.h b/include/fuse_lowlevel.h
index 7c00f76..51aea39 100644
--- a/include/fuse_lowlevel.h
+++ b/include/fuse_lowlevel.h
@@ -1134,7 +1134,7 @@ int fuse_reply_xattr(fuse_req_t req, size_t count);
* @param lock the lock information
* @return zero for success, -errno for failure to send reply
*/
-int fuse_reply_lock(fuse_req_t req, struct flock *lock);
+int fuse_reply_lock(fuse_req_t req, const struct flock *lock);
/**
* Reply with block index
diff --git a/lib/fuse_lowlevel.c b/lib/fuse_lowlevel.c
index e778faa..885522f 100644
--- a/lib/fuse_lowlevel.c
+++ b/lib/fuse_lowlevel.c
@@ -786,7 +786,7 @@ int fuse_reply_xattr(fuse_req_t req, size_t count)
return send_reply_ok(req, &arg, sizeof(arg));
}
-int fuse_reply_lock(fuse_req_t req, struct flock *lock)
+int fuse_reply_lock(fuse_req_t req, const struct flock *lock)
{
struct fuse_lk_out arg;