From e22ee4693dafe590a2d2047a8d63c6dc57bb80ed Mon Sep 17 00:00:00 2001 From: Alain FLAISCHER Date: Mon, 29 May 2017 14:16:29 +0200 Subject: [PATCH] Update sleep_time cast according to time.h definition --- sdk/userspace/include/utils/lcd.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/userspace/include/utils/lcd.h b/sdk/userspace/include/utils/lcd.h index 78bfd5214..006c56248 100644 --- a/sdk/userspace/include/utils/lcd.h +++ b/sdk/userspace/include/utils/lcd.h @@ -46,8 +46,8 @@ extern "C" { static inline int msleep(uint64_t ms) { struct timespec sleep_time = { - .tv_sec = (long int)(ms / MS_PER_SECOND), - .tv_nsec = (long int)((ms % MS_PER_SECOND) * NS_PER_MS) + .tv_sec = (time_t)(ms / MS_PER_SECOND), + .tv_nsec = (long)((ms % MS_PER_SECOND) * NS_PER_MS) }; return clock_nanosleep(CLOCK_MONOTONIC, 0, &sleep_time, NULL);