From 58a3bde4e5538b38afa7fbabd8ffc3315faf8897 Mon Sep 17 00:00:00 2001 From: qintl Date: Wed, 27 Mar 2019 00:55:06 -0700 Subject: [PATCH] Modify the first parameter of the lock_init function Signed-off-by: qintl --- demo/os/linux/easylogger/plugins/file/elog_file_port.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demo/os/linux/easylogger/plugins/file/elog_file_port.c b/demo/os/linux/easylogger/plugins/file/elog_file_port.c index 74b92e0..b3fbec0 100644 --- a/demo/os/linux/easylogger/plugins/file/elog_file_port.c +++ b/demo/os/linux/easylogger/plugins/file/elog_file_port.c @@ -115,7 +115,7 @@ static void lock_init(void) sembuf.sem_op = 1; sembuf.sem_flg = 0; - rc = semop(semid, &sembuf, 1); + rc = semop(id, &sembuf, 1); if (rc == -1) goto __exit; }