aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/detail
diff options
context:
space:
mode:
Diffstat (limited to 'pugl/detail')
-rw-r--r--pugl/detail/x11.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pugl/detail/x11.c b/pugl/detail/x11.c
index 7a29801..6fbe36a 100644
--- a/pugl/detail/x11.c
+++ b/pugl/detail/x11.c
@@ -131,8 +131,8 @@ puglPollEvents(PuglWorld* world, const double timeout)
ret = select(nfds, &fds, NULL, NULL, NULL);
} else {
const long sec = (long)timeout;
- const long msec = (long)((timeout - (double)sec) * 1e6);
- struct timeval tv = {sec, msec};
+ const long usec = (long)((timeout - (double)sec) * 1e6);
+ struct timeval tv = {sec, usec};
ret = select(nfds, &fds, NULL, NULL, &tv);
}