summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2017-11-15 17:05:46 +0100
committerWerner Koch <wk@gnupg.org>2017-11-15 17:05:46 +0100
commit4d4c82ae2bbe7c0e08391ecf34e1aaadfdab435f (patch)
tree63184be8e8a45af9083229035bfa6f0460386444
parent7b408d356094ab0ef0a07904a3ddf3832a8aa197 (diff)
downloadlibassuan-4d4c82ae2bbe7c0e08391ecf34e1aaadfdab435f.tar.gz
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@gnupg.org>
-rw-r--r--src/system-posix.c4
1 files 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;
}