public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0061dad
)
Library sleep() -- update for time() API change.
author
Will Sowerbutts
<will@sowerbutts.com>
Sat, 27 Dec 2014 00:05:02 +0000
(
00:05
+0000)
committer
Will Sowerbutts
<will@sowerbutts.com>
Sat, 27 Dec 2014 00:05:02 +0000
(
00:05
+0000)
Library/libs/sleep.c
patch
|
blob
|
history
diff --git
a/Library/libs/sleep.c
b/Library/libs/sleep.c
index
b016399
..
28cb6ec
100644
(file)
--- 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);
}