summaryrefslogtreecommitdiff
path: root/main/cli.c
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2007-01-23 00:11:32 +0000
committerJoshua Colp <jcolp@digium.com>2007-01-23 00:11:32 +0000
commit21b53af31dcf5e881bf2e6617d7605653119c2f4 (patch)
tree2dedc24f8adfd522fcad82dd7e12e53bf19ff853 /main/cli.c
parentdcdc6c0bc6d89a9f204dd637826e8b690ebf0206 (diff)
Cosmetic changes. Make main source files better conform to coding guidelines and standards. (issue #8679 reported by johann8384)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51486 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/cli.c')
-rw-r--r--main/cli.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/main/cli.c b/main/cli.c
index 342e840a8..7b2e596eb 100644
--- a/main/cli.c
+++ b/main/cli.c
@@ -164,7 +164,7 @@ static char *handle_reload(struct ast_cli_entry *e, int cmd, struct ast_cli_args
for (x = e->args; x < a->argc; x++) {
int res = ast_module_reload(a->argv[x]);
/* XXX reload has multiple error returns, including -1 on error and 2 on success */
- switch(res) {
+ switch (res) {
case 0:
ast_cli(a->fd, "No such module '%s'\n", a->argv[x]);
break;
@@ -778,7 +778,7 @@ static int handle_showchan(int fd, int argc, char *argv[])
ast_cli(fd, "%s is not a known channel\n", argv[3]);
return RESULT_SUCCESS;
}
- if(c->cdr) {
+ if (c->cdr) {
elapsed_seconds = now.tv_sec - c->cdr->start.tv_sec;
hour = elapsed_seconds / 3600;
min = (elapsed_seconds % 3600) / 60;
@@ -835,9 +835,9 @@ static int handle_showchan(int fd, int argc, char *argv[])
( c-> data ? S_OR(c->data, "(Empty)") : "(None)"),
(ast_test_flag(c, AST_FLAG_BLOCKING) ? c->blockproc : "(Not Blocking)"));
- if(pbx_builtin_serialize_variables(c, &out))
+ if (pbx_builtin_serialize_variables(c, &out))
ast_cli(fd," Variables:\n%s\n", out->str);
- if(c->cdr && ast_cdr_serialize_variables(c->cdr, &out, '=', '\n', 1))
+ if (c->cdr && ast_cdr_serialize_variables(c->cdr, &out, '=', '\n', 1))
ast_cli(fd," CDR Variables:\n%s\n", out->str);
ast_channel_unlock(c);
@@ -1175,7 +1175,7 @@ static struct ast_cli_entry *find_cli(char *const cmds[], int match_type)
struct ast_cli_entry *cand = NULL, *e=NULL;
struct cli_iterator i = { NULL, NULL};
- while( (e = cli_next(&i)) ) {
+ while ( (e = cli_next(&i)) ) {
/* word-by word regexp comparison */
char * const *src = cmds;
char * const *dst = e->cmda;