From c1834500b1e3eff24ad67612e1cca7dfaef52f2b Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Tue, 27 Mar 2012 11:56:42 +0200 Subject: [PATCH] It was to late. --- database-plain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database-plain.c b/database-plain.c index 3f30c14..8c6bf13 100644 --- a/database-plain.c +++ b/database-plain.c @@ -28,7 +28,7 @@ #define file_lock_set(fd, cmd) \ { \ struct flock lock = { .l_type = cmd, .l_start = 0, .l_whence = SEEK_SET, .l_len = 0}; \ - fcntl(fd, F_SETLK, lock, NULL); \ + fcntl(fd, F_SETLK, lock); \ } #endif