[asterisk-commits] rmudgett: trunk r308624 - /trunk/main/translate.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Feb 23 17:56:02 CST 2011


Author: rmudgett
Date: Wed Feb 23 17:55:58 2011
New Revision: 308624

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=308624
Log:
Fix compiler warning.

Modified:
    trunk/main/translate.c

Modified: trunk/main/translate.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/translate.c?view=diff&rev=308624&r1=308623&r2=308624
==============================================================================
--- trunk/main/translate.c (original)
+++ trunk/main/translate.c Wed Feb 23 17:55:58 2011
@@ -843,12 +843,18 @@
 
 static char *handle_show_translation_table(struct ast_cli_args *a)
 {
-	int x, y, i, k;
-	int curlen = 0, longest = 0;
-	int f_len = 0;
-	const struct ast_format_list *f_list = ast_format_list_get((size_t *) &f_len);
+	int x;
+	int y;
+	int i;
+	int k;
+	int curlen = 0;
+	int longest = 0;
+	int f_len;
+	size_t f_size = 0;
+	const struct ast_format_list *f_list = ast_format_list_get(&f_size);
 	struct ast_str *out = ast_str_create(1024);
 
+	f_len = f_size;
 	AST_RWLIST_RDLOCK(&translators);
 	ast_cli(a->fd, "         Translation times between formats (in microseconds) for one second of data\n");
 	ast_cli(a->fd, "          Source Format (Rows) Destination Format (Columns)\n\n");




More information about the asterisk-commits mailing list