summaryrefslogtreecommitdiff
path: root/components/libc/pthreads/mqueue.c
diff options
context:
space:
mode:
Diffstat (limited to 'components/libc/pthreads/mqueue.c')
-rw-r--r--components/libc/pthreads/mqueue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/libc/pthreads/mqueue.c b/components/libc/pthreads/mqueue.c
index 1af0ab2919..ce2ff43e23 100644
--- a/components/libc/pthreads/mqueue.c
+++ b/components/libc/pthreads/mqueue.c
@@ -243,7 +243,7 @@ ssize_t mq_timedreceive(mqd_t mqdes,
return -1;
}
- tick = clock_time_to_tick(abs_timeout);
+ tick = rt_timespec_to_tick(abs_timeout);
result = rt_mq_recv(mqdes->mq, msg_ptr, msg_len, tick);
if (result == RT_EOK)