summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Matt Colyer2008-10-23 20:10:21 -0700
committerGravatar Matt Colyer2008-10-23 20:10:21 -0700
commit37ecfbc308078a47a9307286dce2a50f99a6dcf7 (patch)
tree6373db67383bec1e41b4abe828d1772fc3ef199e /src
parent44efbc65af9c9e696e3d76041a2a8c7ea4ac0af3 (diff)
downloadlibplist-37ecfbc308078a47a9307286dce2a50f99a6dcf7.tar.gz
libplist-37ecfbc308078a47a9307286dce2a50f99a6dcf7.tar.bz2
Indent fixes.
Diffstat (limited to 'src')
-rw-r--r--src/AFC.c3
-rw-r--r--src/iphone.c3
-rw-r--r--src/lckdclient.c16
3 files changed, 11 insertions, 11 deletions
diff --git a/src/AFC.c b/src/AFC.c
index ba58db5..58c6bb2 100644
--- a/src/AFC.c
+++ b/src/AFC.c
@@ -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;
}
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)
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);
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[])
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);
}
}