From 62bcedced863a9c4ecc3601638635dfe172a9130 Mon Sep 17 00:00:00 2001 From: Matt Colyer Date: Mon, 4 Aug 2008 23:41:56 -0700 Subject: Zack's C. rewrite of usbmux (with a few additions by Matt Colyer). --- src/ifuse.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/ifuse.c') 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); } -- cgit v1.1-32-gdbae