diff options
author | Werner Koch <wk@gnupg.org> | 2017-11-15 17:05:46 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2017-11-15 17:05:46 +0100 |
commit | 4d4c82ae2bbe7c0e08391ecf34e1aaadfdab435f (patch) | |
tree | 63184be8e8a45af9083229035bfa6f0460386444 | |
parent | 7b408d356094ab0ef0a07904a3ddf3832a8aa197 (diff) | |
download | libassuan-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.c | 4 |
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; } |