From 0efa3bc3a3519695f288211d720620cc0672f054 Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Mon, 29 Dec 2008 12:06:30 +0100 Subject: Removed unused variables --- src/iphone.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/iphone.c') diff --git a/src/iphone.c b/src/iphone.c index b7f6cc4..86226e7 100644 --- a/src/iphone.c +++ b/src/iphone.c @@ -146,7 +146,7 @@ iphone_error_t iphone_get_specific_device(int bus_n, int dev_n, iphone_device_t */ iphone_error_t iphone_get_device(iphone_device_t * device) { - struct usb_bus *bus, *busses; + struct usb_bus *bus; struct usb_device *dev; usb_init(); -- cgit v1.1-32-gdbae From d77ecbe3fbd73418dd72e147a0ac2a89e62b1cd9 Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Mon, 29 Dec 2008 12:35:51 +0100 Subject: Fix function prototypes Add missing static, const, change function() to function(void) --- src/iphone.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/iphone.c') diff --git a/src/iphone.c b/src/iphone.c index 86226e7..f733219 100644 --- a/src/iphone.c +++ b/src/iphone.c @@ -42,7 +42,7 @@ * descriptor on return. * @return IPHONE_E_SUCCESS if ok, otherwise an error code. */ -iphone_error_t iphone_get_specific_device(int bus_n, int dev_n, iphone_device_t * device) +static iphone_error_t iphone_get_specific_device(unsigned int bus_n, int dev_n, iphone_device_t * device) { struct usb_bus *bus, *busses; struct usb_device *dev; -- cgit v1.1-32-gdbae From a1b4064de6e3f28d8d3e1e5e9acdda5aee0f6a36 Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Mon, 29 Dec 2008 12:40:41 +0100 Subject: Add comment about some code that should not be reached --- src/iphone.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/iphone.c') diff --git a/src/iphone.c b/src/iphone.c index f733219..32d27f6 100644 --- a/src/iphone.c +++ b/src/iphone.c @@ -214,7 +214,7 @@ int send_to_phone(iphone_device_t phone, char *data, int datalen) } else { return bytes; } - + /* Should not be reached */ return -1; } -- cgit v1.1-32-gdbae