summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/idevicebackup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/idevicebackup.c b/tools/idevicebackup.c
index d3b3ccc..1984833 100644
--- a/tools/idevicebackup.c
+++ b/tools/idevicebackup.c
@@ -59,7 +59,7 @@ enum device_link_file_status_t {
59 DEVICE_LINK_FILE_STATUS_LAST_HUNK 59 DEVICE_LINK_FILE_STATUS_LAST_HUNK
60}; 60};
61 61
62static void notify_cb(const char *notification) 62static void notify_cb(const char *notification, void *userdata)
63{ 63{
64 if (!strcmp(notification, NP_SYNC_CANCEL_REQUEST)) { 64 if (!strcmp(notification, NP_SYNC_CANCEL_REQUEST)) {
65 printf("User has aborted on-device\n"); 65 printf("User has aborted on-device\n");
@@ -543,7 +543,7 @@ int main(int argc, char *argv[])
543 ret = lockdownd_start_service(client, NP_SERVICE_NAME, &port); 543 ret = lockdownd_start_service(client, NP_SERVICE_NAME, &port);
544 if ((ret == LOCKDOWN_E_SUCCESS) && port) { 544 if ((ret == LOCKDOWN_E_SUCCESS) && port) {
545 np_client_new(phone, port, &np); 545 np_client_new(phone, port, &np);
546 np_set_notify_callback(np, notify_cb); 546 np_set_notify_callback(np, notify_cb, NULL);
547 const char *noties[5] = { 547 const char *noties[5] = {
548 NP_SYNC_CANCEL_REQUEST, 548 NP_SYNC_CANCEL_REQUEST,
549 NP_SYNC_SUSPEND_REQUEST, 549 NP_SYNC_SUSPEND_REQUEST,