From 9eb4cc0593b20a84887753785041d17fec64b375 Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Wed, 13 Jan 2010 02:57:48 +0100 Subject: Port to latest libiphone 0.9.6 API --- src/ifuse.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/ifuse.c b/src/ifuse.c index f0303f5..6243e3f 100644 --- a/src/ifuse.c +++ b/src/ifuse.c @@ -368,7 +368,7 @@ static int ifuse_release(const char *path, struct fuse_file_info *fi) void *ifuse_init_with_service(struct fuse_conn_info *conn, const char *service_name) { - int port = 0; + uint16_t port = 0; afc_client_t afc = NULL; conn->async_read = 0; @@ -628,7 +628,6 @@ static int ifuse_opt_proc(void *data, const char *arg, int key, struct fuse_args res = 0; break; case KEY_DEBUG: - iphone_set_debug_mask(DBGMASK_ALL); iphone_set_debug_level(1); res = 0; break; @@ -700,7 +699,7 @@ int main(int argc, char *argv[]) return 0; } - if (LOCKDOWN_E_SUCCESS != lockdownd_client_new(phone, &control)) { + if (LOCKDOWN_E_SUCCESS != lockdownd_client_new_with_handshake(phone, &control, "ifuse")) { iphone_device_free(phone); fprintf(stderr, "Failed to connect to lockdownd service on the device.\n"); fprintf(stderr, "Try again. If it still fails try rebooting your device.\n"); -- cgit v1.1-32-gdbae