aboutsummaryrefslogtreecommitdiff
path: root/sshfs.c
diff options
context:
space:
mode:
authormssalvatore <mike.s.salvatore@gmail.com>2019-02-14 15:40:32 -0500
committerNikolaus Rath <Nikolaus@rath.org>2019-02-14 20:40:32 +0000
commitb2d857308e5c764f0c1beada7533e629bae87bf2 (patch)
tree18b28ce9a13700656a400ef5de6e9b6a1a6bb7a5 /sshfs.c
parent813b75b8c2577a4d5b08eb38f7b3a9c3dd200495 (diff)
downloadsshfs-b2d857308e5c764f0c1beada7533e629bae87bf2.tar
sshfs-b2d857308e5c764f0c1beada7533e629bae87bf2.tar.gz
sshfs-b2d857308e5c764f0c1beada7533e629bae87bf2.tar.bz2
sshfs-b2d857308e5c764f0c1beada7533e629bae87bf2.zip
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
Diffstat (limited to 'sshfs.c')
-rw-r--r--sshfs.c3
1 files changed, 2 insertions, 1 deletions
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)