summaryrefslogtreecommitdiffstats
path: root/src/lckdclient.c
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/lckdclient.c
parent44efbc65af9c9e696e3d76041a2a8c7ea4ac0af3 (diff)
downloadlibplist-37ecfbc308078a47a9307286dce2a50f99a6dcf7.tar.gz
libplist-37ecfbc308078a47a9307286dce2a50f99a6dcf7.tar.bz2
Indent fixes.
Diffstat (limited to 'src/lckdclient.c')
-rw-r--r--src/lckdclient.c16
1 files changed, 7 insertions, 9 deletions
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);
}
}