From: Will Sowerbutts Date: Sat, 27 Dec 2014 00:05:02 +0000 (+0000) Subject: Library sleep() -- update for time() API change. X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=3ff0ee9851f383c2ae75131b6cd18b1c93dac772;p=FUZIX.git Library sleep() -- update for time() API change. --- 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); }