summaryrefslogtreecommitdiffstats
path: root/src/iphone.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/iphone.c')
-rw-r--r--src/iphone.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/iphone.c b/src/iphone.c
index d8bb9ae..e0e150f 100644
--- a/src/iphone.c
+++ b/src/iphone.c
@@ -34,7 +34,7 @@ extern int debug;
34 * @return A structure with data on the first iPhone it finds. (Or NULL, on 34 * @return A structure with data on the first iPhone it finds. (Or NULL, on
35 * error) 35 * error)
36 */ 36 */
37iPhone *get_iPhone() { 37iPhone_t get_iPhone() {
38 iPhone *phone = (iPhone*)malloc(sizeof(iPhone)); 38 iPhone *phone = (iPhone*)malloc(sizeof(iPhone));
39 struct usb_bus *bus, *busses; 39 struct usb_bus *bus, *busses;
40 struct usb_device *dev; 40 struct usb_device *dev;
@@ -129,7 +129,7 @@ iPhone *get_iPhone() {
129 * 129 *
130 * @param phone A pointer to an iPhone structure. 130 * @param phone A pointer to an iPhone structure.
131 */ 131 */
132void free_iPhone(iPhone *phone) { 132void free_iPhone(iPhone_t phone) {
133 if (phone->buffer) free(phone->buffer); 133 if (phone->buffer) free(phone->buffer);
134 if (phone->device) { 134 if (phone->device) {
135 usb_release_interface(phone->device, 1); 135 usb_release_interface(phone->device, 1);