summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2008-01-24 03:30:56 +0000
committerJoshua Colp <jcolp@digium.com>2008-01-24 03:30:56 +0000
commit15515ec671d414407c82facaaae3cf3b0974976e (patch)
treec3617f7c34150f0f19359d5662db9566ba57d0d8 /main
parent9eff881130590b3924179a56ee1938b61916d321 (diff)
Add some spacing.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@100094 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main')
-rw-r--r--main/channel.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/main/channel.c b/main/channel.c
index d4d878008..f4672ca31 100644
--- a/main/channel.c
+++ b/main/channel.c
@@ -206,10 +206,12 @@ static char *handle_cli_core_show_channeltypes(struct ast_cli_entry *e, int cmd,
ast_cli(a->fd, FORMAT, "Type", "Description", "Devicestate", "Indications", "Transfer");
ast_cli(a->fd, FORMAT, "----------", "-----------", "-----------", "-----------", "--------");
+
if (AST_RWLIST_RDLOCK(&channels)) {
ast_log(LOG_WARNING, "Unable to lock channel list\n");
return CLI_FAILURE;
}
+
AST_LIST_TRAVERSE(&backends, cl, list) {
ast_cli(a->fd, FORMAT, cl->tech->type, cl->tech->description,
(cl->tech->devicestate) ? "yes" : "no",
@@ -217,8 +219,11 @@ static char *handle_cli_core_show_channeltypes(struct ast_cli_entry *e, int cmd,
(cl->tech->transfer) ? "yes" : "no");
count_chan++;
}
+
AST_RWLIST_UNLOCK(&channels);
+
ast_cli(a->fd, "----------\n%d channel drivers registered.\n", count_chan);
+
return CLI_SUCCESS;
#undef FORMAT