diff options
| -rw-r--r-- | src/AFC.c | 3 | ||||
| -rw-r--r-- | src/iphone.c | 3 | ||||
| -rw-r--r-- | src/lckdclient.c | 16 |
3 files changed, 11 insertions, 11 deletions
| @@ -1043,6 +1043,7 @@ iphone_error_t iphone_afc_truncate_file(iphone_afc_client_t client, iphone_afc_f | |||
| 1043 | } | 1043 | } |
| 1044 | } | 1044 | } |
| 1045 | 1045 | ||
| 1046 | uint32 iphone_afc_get_file_handle(iphone_afc_file_t file) { | 1046 | uint32 iphone_afc_get_file_handle(iphone_afc_file_t file) |
| 1047 | { | ||
| 1047 | return file->filehandle; | 1048 | return file->filehandle; |
| 1048 | } | 1049 | } |
diff --git a/src/iphone.c b/src/iphone.c index a0b00d6..81d6870 100644 --- a/src/iphone.c +++ b/src/iphone.c | |||
| @@ -61,7 +61,8 @@ iphone_error_t iphone_get_device(iphone_device_t * device) | |||
| 61 | for (dev = bus->devices; dev; dev = dev->next) { | 61 | for (dev = bus->devices; dev; dev = dev->next) { |
| 62 | if (dev->descriptor.idVendor == 0x05ac && | 62 | if (dev->descriptor.idVendor == 0x05ac && |
| 63 | (dev->descriptor.idProduct == 0x1290 || | 63 | (dev->descriptor.idProduct == 0x1290 || |
| 64 | dev->descriptor.idProduct == 0x1291 || dev->descriptor.idProduct == 0x1292 || dev->descriptor.idProduct == 0x1293) | 64 | dev->descriptor.idProduct == 0x1291 || dev->descriptor.idProduct == 0x1292 |
| 65 | || dev->descriptor.idProduct == 0x1293) | ||
| 65 | ) { | 66 | ) { |
| 66 | phone->__device = dev; | 67 | phone->__device = dev; |
| 67 | phone->device = usb_open(phone->__device); | 68 | phone->device = usb_open(phone->__device); |
diff --git a/src/lckdclient.c b/src/lckdclient.c index 179ecae..7a40c93 100644 --- a/src/lckdclient.c +++ b/src/lckdclient.c | |||
| @@ -57,18 +57,16 @@ int main(int argc, char *argv[]) | |||
| 57 | 57 | ||
| 58 | using_history(); | 58 | using_history(); |
| 59 | int loop = TRUE; | 59 | int loop = TRUE; |
| 60 | while(loop) | 60 | while (loop) { |
| 61 | { | ||
| 62 | char *cmd = readline("> "); | 61 | char *cmd = readline("> "); |
| 63 | if (cmd) | 62 | if (cmd) { |
| 64 | { | ||
| 65 | 63 | ||
| 66 | gchar** args = g_strsplit(cmd, " ", 0); | 64 | gchar **args = g_strsplit(cmd, " ", 0); |
| 67 | 65 | ||
| 68 | int len = 0; | 66 | int len = 0; |
| 69 | if (args) { | 67 | if (args) { |
| 70 | while ( *(args+len) ) { | 68 | while (*(args + len)) { |
| 71 | g_strstrip(*(args+len)); | 69 | g_strstrip(*(args + len)); |
| 72 | len++; | 70 | len++; |
| 73 | } | 71 | } |
| 74 | } | 72 | } |
| @@ -80,7 +78,7 @@ int main(int argc, char *argv[]) | |||
| 80 | 78 | ||
| 81 | if (!strcmp(*args, "get") && len == 3) { | 79 | if (!strcmp(*args, "get") && len == 3) { |
| 82 | char *value = NULL; | 80 | char *value = NULL; |
| 83 | if (IPHONE_E_SUCCESS == lockdownd_generic_get_value(control, *(args+1), *(args+2), &value)) | 81 | if (IPHONE_E_SUCCESS == lockdownd_generic_get_value(control, *(args + 1), *(args + 2), &value)) |
| 84 | printf("Success : value = %s\n", value); | 82 | printf("Success : value = %s\n", value); |
| 85 | else | 83 | else |
| 86 | printf("Error\n"); | 84 | printf("Error\n"); |
| @@ -88,7 +86,7 @@ int main(int argc, char *argv[]) | |||
| 88 | 86 | ||
| 89 | if (!strcmp(*args, "start") && len == 2) { | 87 | if (!strcmp(*args, "start") && len == 2) { |
| 90 | int port = 0; | 88 | int port = 0; |
| 91 | iphone_lckd_start_service(control, *(args+1), &port); | 89 | iphone_lckd_start_service(control, *(args + 1), &port); |
| 92 | printf("%i\n", port); | 90 | printf("%i\n", port); |
| 93 | } | 91 | } |
| 94 | } | 92 | } |
