From b2d857308e5c764f0c1beada7533e629bae87bf2 Mon Sep 17 00:00:00 2001 From: mssalvatore Date: Thu, 14 Feb 2019 15:40:32 -0500 Subject: Update clean_req() to match the definition of GHRFunc (#158) The current definition of the clean_req() function produces a compiler warning as it expects 2 parameters but GHRFunc expects 3. T Fixes: #157 --- sshfs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sshfs.c b/sshfs.c index 97eaf06..f28f2ce 100644 --- a/sshfs.c +++ b/sshfs.c @@ -1267,9 +1267,10 @@ static void chunk_put_locked(struct read_chunk *chunk) pthread_mutex_unlock(&sshfs.lock); } -static int clean_req(void *key_, struct request *req) +static int clean_req(void *key_, struct request *req, gpointer user_data_) { (void) key_; + (void) user_data_; req->error = -EIO; if (req->want_reply) -- cgit v1.2.3