diff options
Diffstat (limited to 'src/iphone.c')
| -rw-r--r-- | src/iphone.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/iphone.c b/src/iphone.c index 93d7b5d..bdabc35 100644 --- a/src/iphone.c +++ b/src/iphone.c | |||
| @@ -52,11 +52,11 @@ iphone_error_t iphone_get_device_by_uuid(iphone_device_t * device, const char *u | |||
| 52 | } | 52 | } |
| 53 | if (dev_list && dev_list[0].handle > 0) { | 53 | if (dev_list && dev_list[0].handle > 0) { |
| 54 | if (!uuid) { | 54 | if (!uuid) { |
| 55 | // select first device found if no UUID specified | 55 | /* select first device found if no UUID specified */ |
| 56 | handle = dev_list[0].handle; | 56 | handle = dev_list[0].handle; |
| 57 | strcpy(serial_number, dev_list[0].serial_number); | 57 | strcpy(serial_number, dev_list[0].serial_number); |
| 58 | } else { | 58 | } else { |
| 59 | // otherwise walk through the list | 59 | /* otherwise walk through the list */ |
| 60 | for (i = 0; dev_list[i].handle > 0; i++) { | 60 | for (i = 0; dev_list[i].handle > 0; i++) { |
| 61 | log_debug_msg("%s: device handle=%d, uuid=%s\n", __func__, dev_list[i].handle, dev_list[i].serial_number); | 61 | log_debug_msg("%s: device handle=%d, uuid=%s\n", __func__, dev_list[i].handle, dev_list[i].serial_number); |
| 62 | if (strcasecmp(uuid, dev_list[i].serial_number) == 0) { | 62 | if (strcasecmp(uuid, dev_list[i].serial_number) == 0) { |
| @@ -119,7 +119,7 @@ iphone_error_t iphone_device_get_uuid(iphone_device_t device, char **uuid) | |||
| 119 | * | 119 | * |
| 120 | * @param phone A pointer to an iPhone structure. | 120 | * @param phone A pointer to an iPhone structure. |
| 121 | */ | 121 | */ |
| 122 | iphone_error_t iphone_free_device(iphone_device_t device) | 122 | iphone_error_t iphone_device_free(iphone_device_t device) |
| 123 | { | 123 | { |
| 124 | if (!device) | 124 | if (!device) |
| 125 | return IPHONE_E_INVALID_ARG; | 125 | return IPHONE_E_INVALID_ARG; |
