From: Miklos Szeredi Date: Mon, 5 Dec 2011 12:31:42 +0000 (+0100) Subject: Make lock argument of fuse_reply_lock const X-Git-Tag: fuse_2_9_0~23 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=6b12905b10b15c046b825c48eb8b9e677952d607;p=qemu-gpiodev%2Flibfuse.git 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 --- 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;