reflock: don't cast away constness from void pointers

This commit is contained in:
Bert Belder 2018-05-17 00:36:55 -07:00
parent a919a57ad2
commit 73af86d1f5
No known key found for this signature in database
GPG Key ID: 7A77887B2E2ED461

View File

@ -30,16 +30,14 @@ void reflock_init(reflock_t* reflock) {
reflock->state = 0;
}
static void _signal_event(const void* address) {
NTSTATUS status =
NtReleaseKeyedEvent(_keyed_event, (PVOID) address, FALSE, NULL);
static void _signal_event(void* address) {
NTSTATUS status = NtReleaseKeyedEvent(_keyed_event, address, FALSE, NULL);
if (status != STATUS_SUCCESS)
abort();
}
static void _await_event(const void* address) {
NTSTATUS status =
NtWaitForKeyedEvent(_keyed_event, (PVOID) address, FALSE, NULL);
static void _await_event(void* address) {
NTSTATUS status = NtWaitForKeyedEvent(_keyed_event, address, FALSE, NULL);
if (status != STATUS_SUCCESS)
abort();
}