diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-06-02 21:37:09 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-06-02 21:37:09 +0000 |
commit | 6fc75b43ce16b1dbac3c3f21851fb6b32b740041 (patch) | |
tree | 16482bb795a5bd766952c6cad4859b1e87e0e450 /channel.c | |
parent | 502b2d00e6f1f0058dfe3260a991f4b0a8537907 (diff) |
make 'show channeltypes' output format work properly (bug #4413)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5820 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channel.c')
-rwxr-xr-x | channel.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -81,10 +81,10 @@ AST_MUTEX_DEFINE_STATIC(chlock); static int show_channeltypes(int fd, int argc, char *argv[]) { -#define FORMAT "%-7.7s %-50.50s\n" +#define FORMAT "%-10.10s %-50.50s\n" struct chanlist *cl = backends; ast_cli(fd, FORMAT, "Type", "Description"); - ast_cli(fd, FORMAT, "------", "-----------"); + ast_cli(fd, FORMAT, "----------", "-----------"); if (ast_mutex_lock(&chlock)) { ast_log(LOG_WARNING, "Unable to lock channel list\n"); return -1; @@ -96,6 +96,8 @@ static int show_channeltypes(int fd, int argc, char *argv[]) ast_mutex_unlock(&chlock); return RESULT_SUCCESS; +#undef FORMAT + } static char show_channeltypes_usage[] = |