Commit a8f377f0 authored by Sebastian Ramacher's avatar Sebastian Ramacher

Pass address

parent 615143bf
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment