summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2011-11-09 18:37:39 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2011-11-09 18:37:39 +0100
commit22f588745d1c4421941d1c2c764a60263b5932a0 (patch)
tree1e6e1d7e7b791d9c5cb09ab97ec2cef6bdba83ab
parenta607590ecdc63848b9a3e996f64aa7ef975a1711 (diff)
downloadpjctl-22f588745d1c4421941d1c2c764a60263b5932a0.tar.gz
pjctl-22f588745d1c4421941d1c2c764a60263b5932a0.tar.bz2
pjctl-22f588745d1c4421941d1c2c764a60263b5932a0.zip
Indent & trailing whitespace cosmetic
-rw-r--r--src/pjctl.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/pjctl.c b/src/pjctl.c
index 91f6bb2..29a46ef 100644
--- a/src/pjctl.c
+++ b/src/pjctl.c
@@ -113,7 +113,7 @@ send_next_cmd(struct pjctl *pjctl)
}
pjctl->state = PJCTL_AWAIT_RESPONSE;
-
+
return 0;
}
@@ -387,7 +387,7 @@ avmute(struct pjctl *pjctl, char **argv, int argc)
g_printerr("incorrect source type given\n");
return -1;
}
-
+
if (strcmp(argv[2], "on") == 0)
on = 1;
else if (strcmp(argv[2], "off") == 0)
@@ -473,7 +473,7 @@ input_switch_response(struct pjctl *pjctl, char *cmd, char *param)
if (strlen(param) == 2)
g_print("%s%c\n",
- map_input_name(param[0]), param[1]);
+ map_input_name(param[0]), param[1]);
else
g_print("error: invalid response\n");
}
@@ -532,7 +532,7 @@ status(struct pjctl *pjctl, char **argv, int argc)
};
struct queue_command *cmd;
int i;
-
+
for (i = 0; i < G_N_ELEMENTS(cmds); ++i) {
cmd = g_memdup(&cmds[i], sizeof *cmd);
if (!cmd)
@@ -585,14 +585,14 @@ main(int argc, char **argv)
usage(&pjctl);
return 1;
}
-
+
for (i = 0; i < G_N_ELEMENTS(commands); ++i) {
if (strcmp(argv[2], commands[i].name) == 0) {
if (commands[i].func(&pjctl, &argv[2], argc-2) < 0)
return 1;
}
}
-
+
/* Nothing got into queue? User gave invalid command. */
if (g_list_length(pjctl.queue) == 0) {
g_printerr("error: invalid command\n");