aboutsummaryrefslogtreecommitdiffstats
path: root/src/assuan-error.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/assuan-error.c')
-rw-r--r--src/assuan-error.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/assuan-error.c b/src/assuan-error.c
index 60cb0d3..c45ca67 100644
--- a/src/assuan-error.c
+++ b/src/assuan-error.c
@@ -33,13 +33,13 @@
/* A small helper function to treat EAGAIN transparently to the
caller. */
int
-_assuan_error_is_eagain (gpg_error_t err)
+_assuan_error_is_eagain (assuan_context_t ctx, gpg_error_t err)
{
if (gpg_err_code (err) == GPG_ERR_EAGAIN)
{
/* Avoid spinning by sleeping for one tenth of a second. */
- _assuan_usleep (100000);
- return 1;
+ _assuan_usleep (ctx, 100000);
+ return 1;
}
else
return 0;