aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-03-15 14:49:00 +0100
committerDavid Robillard <d@drobilla.net>2020-03-15 14:49:00 +0100
commit8a867c60e15d40c568107d5201aba2b7d331af26 (patch)
tree6d811d7b66f33eeaa232cbec43a0d17a42f11599
parentb5d89e71c93024b4bbd1dab6a80478f0efdb0a91 (diff)
downloadpugl-8a867c60e15d40c568107d5201aba2b7d331af26.tar.gz
pugl-8a867c60e15d40c568107d5201aba2b7d331af26.tar.bz2
pugl-8a867c60e15d40c568107d5201aba2b7d331af26.zip
Cleanup: Fix misleading variable name
-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);
}