gnutls-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] GNU gnutls branch, master, updated. gnutls_3_0_13-42-g93354fe


From: Nikos Mavrogiannopoulos
Subject: [SCM] GNU gnutls branch, master, updated. gnutls_3_0_13-42-g93354fe
Date: Sat, 25 Feb 2012 11:56:19 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU gnutls".

http://git.savannah.gnu.org/cgit/gnutls.git/commit/?id=93354fe965b79203c412c85c312c2fcf096264a7

The branch, master has been updated
       via  93354fe965b79203c412c85c312c2fcf096264a7 (commit)
      from  57717f65ce5141761b3ea39a9972b318e7fd2700 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 93354fe965b79203c412c85c312c2fcf096264a7
Author: Nikos Mavrogiannopoulos <address@hidden>
Date:   Sat Feb 25 12:55:35 2012 +0100

    make sure that the microseconds field does not overflow

-----------------------------------------------------------------------

Summary of changes:
 lib/system.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/lib/system.c b/lib/system.c
index 1573bb3..679bb0a 100644
--- a/lib/system.c
+++ b/lib/system.c
@@ -130,6 +130,12 @@ int fd = GNUTLS_POINTER_TO_INT(ptr);
   tv.tv_sec = 0;
   tv.tv_usec = ms * 1000;
   
+  while(tv.tv_usec >= 1000000)
+    {
+      tv.tv_usec -= 1000000;
+      tv.tv_sec++;
+    }
+  
   ret = select(fd+1, &rfds, NULL, NULL, &tv);
   if (ret <= 0)
     return ret;


hooks/post-receive
-- 
GNU gnutls



reply via email to

[Prev in Thread] Current Thread [Next in Thread]