[Asterisk-cvs] asterisk channel.c,1.195,1.196

kpfleming at lists.digium.com kpfleming at lists.digium.com
Thu Jun 2 17:34:05 CDT 2005


Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv3514

Modified Files:
	channel.c 
Log Message:
make 'show channeltypes' output format work properly (bug #4413)


Index: channel.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channel.c,v
retrieving revision 1.195
retrieving revision 1.196
diff -u -d -r1.195 -r1.196
--- channel.c	15 May 2005 04:48:30 -0000	1.195
+++ channel.c	2 Jun 2005 21:37:09 -0000	1.196
@@ -81,10 +81,10 @@
 
 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 @@
 	ast_mutex_unlock(&chlock);
 	return RESULT_SUCCESS;
 
+#undef FORMAT
+
 }
 
 static char show_channeltypes_usage[] = 




More information about the svn-commits mailing list