[asterisk-commits] russell: trunk r39274 - /trunk/cli.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Mon Aug 7 23:36:48 MST 2006


Author: russell
Date: Tue Aug  8 01:36:47 2006
New Revision: 39274

URL: http://svn.digium.com/view/asterisk?rev=39274&view=rev
Log:
change constant name from MAXSTRLEN to INITLEN since it is not the maximum
length, it is the initial length of the string when first allocated

Modified:
    trunk/cli.c

Modified: trunk/cli.c
URL: http://svn.digium.com/view/asterisk/trunk/cli.c?rev=39274&r1=39273&r2=39274&view=diff
==============================================================================
--- trunk/cli.c (original)
+++ trunk/cli.c Tue Aug  8 01:36:47 2006
@@ -55,7 +55,7 @@
 AST_THREADSTORAGE(ast_cli_buf, ast_cli_buf_init);
 
 /*! \brief Initial buffer size for resulting strings in ast_cli() */
-#define AST_CLI_MAXSTRLEN   256
+#define AST_CLI_INITLEN   256
 
 void ast_cli(int fd, char *fmt, ...)
 {
@@ -63,7 +63,7 @@
 	struct ast_dynamic_str *buf;
 	va_list ap;
 
-	if (!(buf = ast_dynamic_str_thread_get(&ast_cli_buf, AST_CLI_MAXSTRLEN)))
+	if (!(buf = ast_dynamic_str_thread_get(&ast_cli_buf, AST_CLI_INITLEN)))
 		return;
 
 	va_start(ap, fmt);



More information about the asterisk-commits mailing list