Skip to content

Commit

Permalink
Fixed an error in file_lock.c.
Browse files Browse the repository at this point in the history
  • Loading branch information
ax-6 committed Jul 30, 2024
1 parent 77c5f2b commit 61aac03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aqvm/base/threading/file_lock/unix/file_lock.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ int AqvmBaseThreadingFileLockUnix_UnlockFile(FILE* file) {
struct flock file_lock = {0};
file_lock.l_type = F_UNLCK;

if (fcntl(fd, F_SETLK, &file_lock) == -1) {
if (fcntl(file_descriptor, F_SETLK, &file_lock) == -1) {
// TODO
return -1;
}
Expand Down

0 comments on commit 61aac03

Please sign in to comment.