Modify the first parameter of the lock_init function

Signed-off-by: qintl <qtl_linux@163.com>
pull/45/head
qintl 7 years ago
parent afabf352f3
commit 58a3bde4e5

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

Loading…
Cancel
Save