Skip to content

Commit

Permalink
Merge pull request #45 from tianlongqin/master
Browse files Browse the repository at this point in the history
Modify the first parameter of the lock_init function
  • Loading branch information
armink authored Mar 27, 2019
2 parents 79044bc + 58a3bde commit fa7f940
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demo/os/linux/easylogger/plugins/file/elog_file_port.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit fa7f940

Please sign in to comment.