From 499c3f24d95be305cde4b9a2b1595de7de214be7 Mon Sep 17 00:00:00 2001 From: rmudgett Date: Wed, 23 Feb 2011 23:55:58 +0000 Subject: [PATCH] Fix compiler warning. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@308624 f38db490-d61c-443f-a65b-d21fe96a405b --- main/translate.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/main/translate.c b/main/translate.c index caba2d393..eb0c77a23 100644 --- a/main/translate.c +++ b/main/translate.c @@ -843,12 +843,18 @@ static void handle_cli_recalc(struct ast_cli_args *a) 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");