aboutsummaryrefslogtreecommitdiffstats
path: root/example/fusexmp_fh.c
diff options
context:
space:
mode:
Diffstat (limited to 'example/fusexmp_fh.c')
-rw-r--r--example/fusexmp_fh.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/example/fusexmp_fh.c b/example/fusexmp_fh.c
index 9bf0d25..2ad1a50 100644
--- a/example/fusexmp_fh.c
+++ b/example/fusexmp_fh.c
@@ -402,11 +402,12 @@ static int xmp_removexattr(const char *path, const char *name)
#endif /* HAVE_SETXATTR */
static int xmp_lock(const char *path, struct fuse_file_info *fi, int cmd,
- struct flock *lock, uint64_t owner)
+ struct flock *lock)
{
(void) path;
- return ulockmgr_op(fi->fh, cmd, lock, &owner, sizeof(owner));
+ return ulockmgr_op(fi->fh, cmd, lock, &fi->lock_owner,
+ sizeof(fi->lock_owner));
}
static struct fuse_operations xmp_oper = {