From 7e2b1c539aed608a87983532b1c069c2fadc31c3 Mon Sep 17 00:00:00 2001
From: Luigi Rizzo <rizzo@icir.org>
Date: Thu, 30 Mar 2006 21:49:24 +0000
Subject: [PATCH] localize a variable

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16562 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 apps/app_echo.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/apps/app_echo.c b/apps/app_echo.c
index 61a1261089..2e70415a58 100644
--- a/apps/app_echo.c
+++ b/apps/app_echo.c
@@ -59,7 +59,6 @@ static int echo_exec(struct ast_channel *chan, void *data)
 	int res = -1;
 	int format;
 	struct localuser *u;
-	struct ast_frame *f;
 
 	LOCAL_USER_ADD(u);
 
@@ -68,7 +67,7 @@ static int echo_exec(struct ast_channel *chan, void *data)
 	ast_set_read_format(chan, format);
 
 	while (ast_waitfor(chan, -1) > -1) {
-		f = ast_read(chan);
+		struct ast_frame *f = ast_read(chan);
 		if (!f)
 			break;
 		f->delivery.tv_sec = 0;
-- 
GitLab