Commit 37ecfbc3 authored by Matt Colyer's avatar Matt Colyer

Indent fixes.

parent 44efbc65
......@@ -1043,6 +1043,7 @@ iphone_error_t iphone_afc_truncate_file(iphone_afc_client_t client, iphone_afc_f
}
}
uint32 iphone_afc_get_file_handle(iphone_afc_file_t file) {
uint32 iphone_afc_get_file_handle(iphone_afc_file_t file)
{
return file->filehandle;
}
......@@ -61,7 +61,8 @@ iphone_error_t iphone_get_device(iphone_device_t * device)
for (dev = bus->devices; dev; dev = dev->next) {
if (dev->descriptor.idVendor == 0x05ac &&
(dev->descriptor.idProduct == 0x1290 ||
dev->descriptor.idProduct == 0x1291 || dev->descriptor.idProduct == 0x1292 || dev->descriptor.idProduct == 0x1293)
dev->descriptor.idProduct == 0x1291 || dev->descriptor.idProduct == 0x1292
|| dev->descriptor.idProduct == 0x1293)
) {
phone->__device = dev;
phone->device = usb_open(phone->__device);
......
......@@ -57,18 +57,16 @@ int main(int argc, char *argv[])
using_history();
int loop = TRUE;
while(loop)
{
while (loop) {
char *cmd = readline("> ");
if (cmd)
{
if (cmd) {
gchar** args = g_strsplit(cmd, " ", 0);
gchar **args = g_strsplit(cmd, " ", 0);
int len = 0;
if (args) {
while ( *(args+len) ) {
g_strstrip(*(args+len));
while (*(args + len)) {
g_strstrip(*(args + len));
len++;
}
}
......@@ -80,7 +78,7 @@ int main(int argc, char *argv[])
if (!strcmp(*args, "get") && len == 3) {
char *value = NULL;
if (IPHONE_E_SUCCESS == lockdownd_generic_get_value(control, *(args+1), *(args+2), &value))
if (IPHONE_E_SUCCESS == lockdownd_generic_get_value(control, *(args + 1), *(args + 2), &value))
printf("Success : value = %s\n", value);
else
printf("Error\n");
......@@ -88,7 +86,7 @@ int main(int argc, char *argv[])
if (!strcmp(*args, "start") && len == 2) {
int port = 0;
iphone_lckd_start_service(control, *(args+1), &port);
iphone_lckd_start_service(control, *(args + 1), &port);
printf("%i\n", port);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment