Library sleep() -- update for time() API change.
authorWill Sowerbutts <will@sowerbutts.com>
Sat, 27 Dec 2014 00:05:02 +0000 (00:05 +0000)
committerWill Sowerbutts <will@sowerbutts.com>
Sat, 27 Dec 2014 00:05:02 +0000 (00:05 +0000)
Library/libs/sleep.c

index b016399..28cb6ec 100644 (file)
@@ -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);
 }