summaryrefslogtreecommitdiffstats
path: root/src/ifuse.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ifuse.c')
-rw-r--r--src/ifuse.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ifuse.c b/src/ifuse.c
index e4d14e5..900bb17 100644
--- a/src/ifuse.c
+++ b/src/ifuse.c
@@ -155,9 +155,10 @@ void *ifuse_init(struct fuse_conn_info *conn) {
return afc;
}
-void ifuse_cleanup(AFClient *afc) {
+void ifuse_cleanup(void *data) {
+ AFClient *afc = (AFClient *)data;
if (afc) {
- iPhone *phone = afc->phone;
+ iPhone *phone = afc->connection->phone;
afc_disconnect(afc);
free_iPhone(phone);
}