summaryrefslogtreecommitdiffstats
path: root/dev/iphoneclient.c
diff options
context:
space:
mode:
Diffstat (limited to 'dev/iphoneclient.c')
-rw-r--r--dev/iphoneclient.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dev/iphoneclient.c b/dev/iphoneclient.c
index bb5dfdd..d62d23f 100644
--- a/dev/iphoneclient.c
+++ b/dev/iphoneclient.c
@@ -20,9 +20,9 @@
*/
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include <errno.h>
-#include <usb.h>
#include <glib.h>
#include <libiphone/libiphone.h>
@@ -75,7 +75,7 @@ int main(int argc, char *argv[])
iphone_set_debug_mask(DBGMASK_NONE);
}
- if (IPHONE_E_SUCCESS != iphone_get_device(&phone)) {
+ if (IPHONE_E_SUCCESS != iphone_device_new(&phone, NULL)) {
printf("No iPhone found, is it plugged in?\n");
return -1;
}