From 050416ed29447902480e80359bb8f25df24be3d4 Mon Sep 17 00:00:00 2001 From: "Kevin P. Fleming" Date: Thu, 2 Jun 2005 21:37:09 +0000 Subject: make 'show channeltypes' output format work properly (bug #4413) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5820 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channel.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'channel.c') diff --git a/channel.c b/channel.c index 5642ea550..4e67b3b90 100755 --- a/channel.c +++ b/channel.c @@ -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[] = -- cgit v1.2.3