Pass address

This commit is contained in:
Sebastian Ramacher 2019-01-18 21:09:56 +01:00
parent 615143bf56
commit a8f377f0fe

View file

@ -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