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.
This commit is contained in:
mssalvatore 2019-02-25 16:00:53 -05:00 committed by Nikolaus Rath
parent 6b10b3c8c0
commit fda6c8f862
1 changed files with 2 additions and 1 deletions

View File

@ -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)