From 8a867c60e15d40c568107d5201aba2b7d331af26 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 15 Mar 2020 14:49:00 +0100 Subject: Cleanup: Fix misleading variable name --- pugl/detail/x11.c | 4 ++-- 1 file 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); } -- cgit v1.2.1