mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-08 19:08:14 +00:00
localize a variable
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16562 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -59,7 +59,6 @@ static int echo_exec(struct ast_channel *chan, void *data)
|
|||||||
int res = -1;
|
int res = -1;
|
||||||
int format;
|
int format;
|
||||||
struct localuser *u;
|
struct localuser *u;
|
||||||
struct ast_frame *f;
|
|
||||||
|
|
||||||
LOCAL_USER_ADD(u);
|
LOCAL_USER_ADD(u);
|
||||||
|
|
||||||
@@ -68,7 +67,7 @@ static int echo_exec(struct ast_channel *chan, void *data)
|
|||||||
ast_set_read_format(chan, format);
|
ast_set_read_format(chan, format);
|
||||||
|
|
||||||
while (ast_waitfor(chan, -1) > -1) {
|
while (ast_waitfor(chan, -1) > -1) {
|
||||||
f = ast_read(chan);
|
struct ast_frame *f = ast_read(chan);
|
||||||
if (!f)
|
if (!f)
|
||||||
break;
|
break;
|
||||||
f->delivery.tv_sec = 0;
|
f->delivery.tv_sec = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user