mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2025-01-29 01:14:56 +01:00
Pass address
This commit is contained in:
parent
615143bf56
commit
a8f377f0fe
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ static int
|
||||||
file_lock_set(int fd, short cmd)
|
file_lock_set(int fd, short cmd)
|
||||||
{
|
{
|
||||||
struct flock lock = { .l_type = cmd, .l_start = 0, .l_whence = SEEK_SET, .l_len = 0};
|
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
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue