forked from len0rd/rockbox
Simplification.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6456 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
f34e4ff6a4
commit
441e512190
1 changed files with 1 additions and 1 deletions
|
|
@ -31,7 +31,7 @@ static void msleep(int msec)
|
|||
struct timeval delay;
|
||||
|
||||
delay.tv_sec = msec / 1000;
|
||||
delay.tv_usec = (msec - 1000 * delay.tv_sec) * 1000;
|
||||
delay.tv_usec = (msec % 1000) * 1000;
|
||||
select(0, NULL, NULL, NULL, &delay); /* portable sub-second sleep */
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue