[Pkg-wmaker-commits] [wmifinfo] 34/49: wmifinfo: Add valid timeval.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Tue Aug 18 02:07:44 UTC 2015


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to branch master
in repository wmifinfo.

commit eb14d26d2e364309054592963467ec7fa72ca508
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date:   Mon Dec 8 21:01:55 2014 -0600

    wmifinfo: Add valid timeval.
    
    Patch by Julien BLACHE from Debian:
    http://sources.debian.net/src/wmifinfo/0.09-7/debian/patches/wmifinfo-timeval_fix.patch/
    
    For more information, see:
    https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=503416
---
 wmifinfo.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/wmifinfo.c b/wmifinfo.c
index 438423f..1f5c8b9 100644
--- a/wmifinfo.c
+++ b/wmifinfo.c
@@ -49,6 +49,7 @@
 #define MAXIFS 10
 #ifdef linux
 #define DELAY 1000000L
+#define USEC_PER_SEC 1000000L
 #else
 #define DELAY 100000L
 #endif
@@ -269,8 +270,8 @@ int main(int argc, char *argv[])
 		}
 
 #ifdef linux
-		tv.tv_sec = 0;
-		tv.tv_usec = DELAY;
+		tv.tv_sec = DELAY / USEC_PER_SEC;
+		tv.tv_usec = DELAY - (tv.tv_sec * USEC_PER_SEC);
 
 		FD_ZERO(&fds);
 		FD_SET(ConnectionNumber(display), &fds);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmifinfo.git



More information about the Pkg-wmaker-commits mailing list