summaryrefslogtreecommitdiffstats
path: root/src/iphone.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/iphone.c')
-rw-r--r--src/iphone.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/iphone.c b/src/iphone.c
index b7f6cc4..32d27f6 100644
--- a/src/iphone.c
+++ b/src/iphone.c
@@ -42,7 +42,7 @@
42 * descriptor on return. 42 * descriptor on return.
43 * @return IPHONE_E_SUCCESS if ok, otherwise an error code. 43 * @return IPHONE_E_SUCCESS if ok, otherwise an error code.
44 */ 44 */
45iphone_error_t iphone_get_specific_device(int bus_n, int dev_n, iphone_device_t * device) 45static iphone_error_t iphone_get_specific_device(unsigned int bus_n, int dev_n, iphone_device_t * device)
46{ 46{
47 struct usb_bus *bus, *busses; 47 struct usb_bus *bus, *busses;
48 struct usb_device *dev; 48 struct usb_device *dev;
@@ -146,7 +146,7 @@ iphone_error_t iphone_get_specific_device(int bus_n, int dev_n, iphone_device_t
146 */ 146 */
147iphone_error_t iphone_get_device(iphone_device_t * device) 147iphone_error_t iphone_get_device(iphone_device_t * device)
148{ 148{
149 struct usb_bus *bus, *busses; 149 struct usb_bus *bus;
150 struct usb_device *dev; 150 struct usb_device *dev;
151 151
152 usb_init(); 152 usb_init();
@@ -214,7 +214,7 @@ int send_to_phone(iphone_device_t phone, char *data, int datalen)
214 } else { 214 } else {
215 return bytes; 215 return bytes;
216 } 216 }
217 217 /* Should not be reached */
218 return -1; 218 return -1;
219} 219}
220 220