[Pkg-gnupg-commit] [libassuan] 09/19: Fix last commit.

Eric Dorland eric at moszumanska.debian.org
Sat Nov 25 07:02:19 UTC 2017


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

eric pushed a commit to branch master
in repository libassuan.

commit 4d4c82ae2bbe7c0e08391ecf34e1aaadfdab435f
Author: Werner Koch <wk at gnupg.org>
Date:   Wed Nov 15 17:05:46 2017 +0100

    Fix last commit.
    
    * src/system-posix.c (__assuan_usleep): Its ysec and usecs
    --
    
    Copy+Paste without even compiling was pretty dumb.
    
    Signed-off-by: Werner Koch <wk at gnupg.org>
---
 src/system-posix.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/system-posix.c b/src/system-posix.c
index 65d2c8c..d274994 100644
--- a/src/system-posix.c
+++ b/src/system-posix.c
@@ -68,8 +68,8 @@ __assuan_usleep (assuan_context_t ctx, unsigned int usec)
     struct timespec req;
     struct timespec rem;
 
-    req.tv_sec  = usecs / 1000000;
-    req.tv_nsec = (usecs % 1000000) * 1000;
+    req.tv_sec  = usec / 1000000;
+    req.tv_nsec = (usec % 1000000) * 1000;
     while (nanosleep (&req, &rem) < 0 && errno == EINTR)
       req = rem;
   }

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



More information about the Pkg-gnupg-commit mailing list