From 3ff0ee9851f383c2ae75131b6cd18b1c93dac772 Mon Sep 17 00:00:00 2001 From: Will Sowerbutts Date: Sat, 27 Dec 2014 00:05:02 +0000 Subject: [PATCH] Library sleep() -- update for time() API change. --- Library/libs/sleep.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/libs/sleep.c b/Library/libs/sleep.c index b0163990..28cb6ec0 100644 --- a/Library/libs/sleep.c +++ b/Library/libs/sleep.c @@ -8,10 +8,10 @@ unsigned int sleep(unsigned int seconds) { time_t end, now; - _time(&end); + _time(&end, 0); end += seconds; if (_pause(seconds * 10) == 0) return 0; - _time(&now); + _time(&now, 0); return (int)(end - now); } -- 2.34.1