From fda6c8f8623657de0da31f8025bb5ec389a04be9 Mon Sep 17 00:00:00 2001 From: mssalvatore Date: Mon, 25 Feb 2019 16:00:53 -0500 Subject: Update clean_req() to match the definition of GHRFunc (#160) The current definition of the clean_req() function produces a compiler warning as it expects 2 parameters but GHRFunc expects 3. This commit resolves issue #157. --- sshfs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sshfs.c') diff --git a/sshfs.c b/sshfs.c index 39ddaf9..1016b97 100644 --- a/sshfs.c +++ b/sshfs.c @@ -1289,9 +1289,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