summaryrefslogtreecommitdiffstats
path: root/src/ifuse.c
diff options
context:
space:
mode:
authorGravatar Matt Colyer2008-08-04 23:41:56 -0700
committerGravatar Matt Colyer2008-08-04 23:41:56 -0700
commit62bcedced863a9c4ecc3601638635dfe172a9130 (patch)
tree9937b4f6fbb848c1854e0add40f7ee86bba10d88 /src/ifuse.c
parent294f6080e7c26cb390093eead11c8e0757e00fe2 (diff)
downloadlibimobiledevice-62bcedced863a9c4ecc3601638635dfe172a9130.tar.gz
libimobiledevice-62bcedced863a9c4ecc3601638635dfe172a9130.tar.bz2
Zack's C. rewrite of usbmux (with a few additions by Matt Colyer).
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);
}