summaryrefslogtreecommitdiff
path: root/lib/thread/hookstd.myr
diff options
context:
space:
mode:
Diffstat (limited to 'lib/thread/hookstd.myr')
-rw-r--r--lib/thread/hookstd.myr10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/thread/hookstd.myr b/lib/thread/hookstd.myr
index de83178..ea56193 100644
--- a/lib/thread/hookstd.myr
+++ b/lib/thread/hookstd.myr
@@ -13,11 +13,11 @@ const __init__ = {
netlck = mkmtx()
envlck = mkmtx()
std.__lockinit( \
- &memlck castto(void#), \
- &netlck castto(void#), \
- &envlck castto(void#), \
- {mtx; mtxlock(mtx castto(mutex#))}, \
- {mtx; mtxunlock(mtx castto(mutex#))} \
+ (&memlck : void#), \
+ (&netlck : void#), \
+ (&envlck : void#), \
+ {mtx; mtxlock((mtx : mutex#))}, \
+ {mtx; mtxunlock((mtx : mutex#))} \
)
}