From e52da6fe75008174a254254ec83394766afb624b Mon Sep 17 00:00:00 2001 From: Jonathan Beck Date: Mon, 25 Aug 2008 23:50:22 +0200 Subject: make it compile --- src/iphone.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/iphone.c') diff --git a/src/iphone.c b/src/iphone.c index 9027e35..3d179de 100644 --- a/src/iphone.c +++ b/src/iphone.c @@ -76,7 +76,7 @@ int iphone_get_device ( iphone_device_t *device ){ // Check to see if we are connected if (!phone->device || !phone->__device) { - free_iPhone(phone); + iphone_free_device(phone); if (debug) fprintf(stderr, "get_iPhone(): iPhone not found\n"); return IPHONE_E_NO_DEVICE; } @@ -99,7 +99,7 @@ int iphone_get_device ( iphone_device_t *device ){ // Check for bad response if (bytes < 20) { free(version); - free_iPhone(phone); + iphone_free_device(phone); if (debug) fprintf(stderr, "get_iPhone(): Invalid version message -- header too short.\n"); if (debug && bytes < 0) fprintf(stderr, "get_iPhone(): libusb error message %d: %s (%s)\n", bytes, usb_strerror(), strerror(-bytes)); @@ -115,7 +115,7 @@ int iphone_get_device ( iphone_device_t *device ){ return IPHONE_E_SUCCESS; } else { // Bad header - free_iPhone(phone); + iphone_free_device(phone); free(version); if (debug) fprintf(stderr, "get_iPhone(): Received a bad header/invalid version number."); return IPHONE_E_BAD_HEADER; @@ -123,7 +123,7 @@ int iphone_get_device ( iphone_device_t *device ){ // If it got to this point it's gotta be bad if (debug) fprintf(stderr, "get_iPhone(): Unknown error.\n"); - free_iPhone(phone); + iphone_free_device(phone); free(version); return IPHONE_E_UNKNOWN_ERROR; // if it got to this point it's gotta be bad } -- cgit v1.1-32-gdbae