From 61aac039db394f5637e86ba329111060370ce676 Mon Sep 17 00:00:00 2001 From: ax-6 Date: Wed, 31 Jul 2024 01:30:50 +0800 Subject: [PATCH] Fixed an error in file_lock.c. --- aqvm/base/threading/file_lock/unix/file_lock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aqvm/base/threading/file_lock/unix/file_lock.c b/aqvm/base/threading/file_lock/unix/file_lock.c index d87336a..dff231a 100644 --- a/aqvm/base/threading/file_lock/unix/file_lock.c +++ b/aqvm/base/threading/file_lock/unix/file_lock.c @@ -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; }