aboutsummaryrefslogtreecommitdiff
path: root/sshfs.c
diff options
context:
space:
mode:
authormssalvatore <mike.s.salvatore@gmail.com>2019-02-25 16:00:53 -0500
committerNikolaus Rath <Nikolaus@rath.org>2019-02-25 21:00:53 +0000
commitfda6c8f8623657de0da31f8025bb5ec389a04be9 (patch)
tree14e3a7bdfbb3a01d9018f711576326110055bb37 /sshfs.c
parent6b10b3c8c0654d63b84e18f5b4c21e342788cdc7 (diff)
downloadsshfs-fda6c8f8623657de0da31f8025bb5ec389a04be9.tar
sshfs-fda6c8f8623657de0da31f8025bb5ec389a04be9.tar.gz
sshfs-fda6c8f8623657de0da31f8025bb5ec389a04be9.tar.bz2
sshfs-fda6c8f8623657de0da31f8025bb5ec389a04be9.zip
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.
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 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)