From 0209568c57d95da3a18a4f33c6c2ee299c28c266 Mon Sep 17 00:00:00 2001 From: Noah Watkins Date: Sat, 20 Jul 2013 18:41:39 -0700 Subject: [PATCH] utime: use to_timespec for conversion Signed-off-by: Noah Watkins --- src/include/utime.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/include/utime.h b/src/include/utime.h index e1346059306..5bebc70a342 100644 --- a/src/include/utime.h +++ b/src/include/utime.h @@ -138,8 +138,9 @@ public: } void sleep() { - struct timespec ts = { (__time_t)tv.tv_sec, (long)tv.tv_nsec }; - nanosleep(&ts, &ts); + struct timespec ts; + to_timespec(&ts); + nanosleep(&ts, NULL); } // output -- 2.47.3