1
0
Fork 0
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:
Jens Arnold 2005-05-11 20:04:43 +00:00
parent f34e4ff6a4
commit 441e512190

View file

@ -31,7 +31,7 @@ static void msleep(int msec)
struct timeval delay; struct timeval delay;
delay.tv_sec = msec / 1000; 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 */ select(0, NULL, NULL, NULL, &delay); /* portable sub-second sleep */
} }