From a8f377f0fe123664911b66b31b834f044236001d Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Fri, 18 Jan 2019 21:09:56 +0100 Subject: [PATCH] Pass address --- zathura/database-plain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zathura/database-plain.c b/zathura/database-plain.c index 4a2d8f4..0dea0ce 100644 --- a/zathura/database-plain.c +++ b/zathura/database-plain.c @@ -46,7 +46,7 @@ static int file_lock_set(int fd, short cmd) { struct flock lock = { .l_type = cmd, .l_start = 0, .l_whence = SEEK_SET, .l_len = 0}; - return fcntl(fd, F_SETLKW, lock); + return fcntl(fd, F_SETLKW, &lock); } #endif