summaryrefslogtreecommitdiffstats
path: root/src/iphone.c
diff options
context:
space:
mode:
authorGravatar Jonathan Beck2009-01-04 22:21:15 +0100
committerGravatar Jonathan Beck2009-01-04 22:21:15 +0100
commit5514a3b2a9734d311e4f6014585f922e0b748cab (patch)
treeca88a32519d6a07da72d15632de7af04461f7ba8 /src/iphone.c
parent4301ef9bb8e9d06ffa4e9172191d58ede5e16f5d (diff)
parent5cde55426112a8cb79d809dae5f61e347c007212 (diff)
downloadlibimobiledevice-5514a3b2a9734d311e4f6014585f922e0b748cab.tar.gz
libimobiledevice-5514a3b2a9734d311e4f6014585f922e0b748cab.tar.bz2
Merge branch 'master' into plist
Conflicts: src/AFC.c src/lockdown.c src/lockdown.h src/plist.c src/plist.h
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