From e1b22c51edd2c3b416d111a63e1a84ab3ba7817e Mon Sep 17 00:00:00 2001 From: Jonathan Beck Date: Mon, 11 Aug 2008 22:32:01 +0200 Subject: first shot at setting up a library --- src/iphone.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/iphone.c') 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; * @return A structure with data on the first iPhone it finds. (Or NULL, on * error) */ -iPhone *get_iPhone() { +iPhone_t get_iPhone() { iPhone *phone = (iPhone*)malloc(sizeof(iPhone)); struct usb_bus *bus, *busses; struct usb_device *dev; @@ -129,7 +129,7 @@ iPhone *get_iPhone() { * * @param phone A pointer to an iPhone structure. */ -void free_iPhone(iPhone *phone) { +void free_iPhone(iPhone_t phone) { if (phone->buffer) free(phone->buffer); if (phone->device) { usb_release_interface(phone->device, 1); -- cgit v1.1-32-gdbae