summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorscottl <scottl@FreeBSD.org>2005-01-15 02:43:31 +0000
committerscottl <scottl@FreeBSD.org>2005-01-15 02:43:31 +0000
commit1df25ecd79325dade12d1a56dc9fb90982a51413 (patch)
tree3fc1799bb1de2d5085707ed2c48e0fea2cad7948
parent1f3769b47055f7e50e606218c3cae9cd2732b820 (diff)
downloadFreeBSD-src-1df25ecd79325dade12d1a56dc9fb90982a51413.zip
FreeBSD-src-1df25ecd79325dade12d1a56dc9fb90982a51413.tar.gz
Add a cast to fix a warning.
-rw-r--r--sys/sys/umtx.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/umtx.h b/sys/sys/umtx.h
index 4664c4e..c9cfcb7 100644
--- a/sys/sys/umtx.h
+++ b/sys/sys/umtx.h
@@ -115,7 +115,7 @@ umtx_unlock(struct umtx *umtx, long id)
static __inline int
umtx_wait(struct umtx *umtx, long id, const struct timespec *timeout)
{
- return (- _umtx_op(umtx, UMTX_OP_WAIT, id, 0, timeout));
+ return (- _umtx_op(umtx, UMTX_OP_WAIT, id, 0, (void *)timeout));
}
/* Wake threads waiting on a user address. */
OpenPOWER on IntegriCloud