summaryrefslogtreecommitdiffstats
path: root/uisimulator/x11
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2005-05-11 20:04:43 +0000
committerJens Arnold <amiconn@rockbox.org>2005-05-11 20:04:43 +0000
commit441e512190d00156ba8c8ed418aca00d1de6d488 (patch)
treec8ee6cbfcaf3169fdc41f1bb9c8d5d9341f3265b /uisimulator/x11
parentf34e4ff6a42a003bcfc063896f390dcb94052cde (diff)
downloadrockbox-441e512190d00156ba8c8ed418aca00d1de6d488.tar.gz
rockbox-441e512190d00156ba8c8ed418aca00d1de6d488.tar.bz2
rockbox-441e512190d00156ba8c8ed418aca00d1de6d488.zip
Simplification.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6456 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator/x11')
-rw-r--r--uisimulator/x11/thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/uisimulator/x11/thread.c b/uisimulator/x11/thread.c
index 12a3b3e0c7..4288c0ffcb 100644
--- a/uisimulator/x11/thread.c
+++ b/uisimulator/x11/thread.c
@@ -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 */
}