summaryrefslogtreecommitdiffstats
path: root/src/iphone.c
diff options
context:
space:
mode:
authorGravatar Jonathan Beck2008-08-19 23:58:20 +0200
committerGravatar Jonathan Beck2008-08-31 19:27:20 +0200
commitad65cefa1c041bbd4792e3dc4f4afc7b07026930 (patch)
tree76c73d5372cc7152ec20fb809b6da71f3dd896df /src/iphone.c
parent21d5d4ac4b4bd419e0d8752147464984497c98ec (diff)
downloadlibimobiledevice-ad65cefa1c041bbd4792e3dc4f4afc7b07026930.tar.gz
libimobiledevice-ad65cefa1c041bbd4792e3dc4f4afc7b07026930.tar.bz2
migrate usbmux.c.
Diffstat (limited to 'src/iphone.c')
-rw-r--r--src/iphone.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/iphone.c b/src/iphone.c
index f3b7202..9027e35 100644
--- a/src/iphone.c
+++ b/src/iphone.c
@@ -42,7 +42,6 @@ int iphone_get_device ( iphone_device_t *device ){
struct usb_bus *bus, *busses;
struct usb_device *dev;
iphone_device_t phone = (iphone_device_t)malloc(sizeof(struct iphone_device_int));
- usbmux_version_header *version = version_header();
// Initialize the struct
phone->device = NULL;
@@ -126,7 +125,7 @@ int iphone_get_device ( iphone_device_t *device ){
if (debug) fprintf(stderr, "get_iPhone(): Unknown error.\n");
free_iPhone(phone);
free(version);
- return IPHONE_E_NO_DEVICE; // if it got to this point it's gotta be bad
+ return IPHONE_E_UNKNOWN_ERROR; // if it got to this point it's gotta be bad
}
/** Cleans up an iPhone structure, then frees the structure itself.