From 6b12905b10b15c046b825c48eb8b9e677952d607 Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Mon, 5 Dec 2011 13:31:42 +0100 Subject: [PATCH] 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 --- ChangeLog | 5 +++++ include/fuse_lowlevel.h | 2 +- lib/fuse_lowlevel.c | 2 +- 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 + + * Low level API: lock argument of fuse_reply_lock should have a + 'const' qualifier. Reported by Shachar Sharon + 2011-10-13 Miklos Szeredi * 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; -- 2.30.2