From 0e5c761c28a4ea091d760cfabc2ed3512ee2689a Mon Sep 17 00:00:00 2001 From: Terry Wilson Date: Thu, 1 Mar 2012 22:09:18 +0000 Subject: Opaquify ast_channel typedefs, fd arrays, and softhangup flag Review: https://reviewboard.asterisk.org/r/1784/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@357721 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/chan_agent.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'channels/chan_agent.c') diff --git a/channels/chan_agent.c b/channels/chan_agent.c index 3c8073b81..4ce43a5a3 100644 --- a/channels/chan_agent.c +++ b/channels/chan_agent.c @@ -321,11 +321,12 @@ static AST_LIST_HEAD_STATIC(agents, agent_pvt); /*!< Holds the list of agents (l #define CLEANUP(ast, p) do { \ int x; \ if (p->chan) { \ - for (x=0;xchan->fds[x]); \ + for (x = 0; x < AST_MAX_FDS; x++) { \ + if (x != AST_TIMING_FD) { \ + ast_channel_set_fd(ast, x, ast_channel_fd(p->chan, x)); \ + } \ } \ - ast_channel_set_fd(ast, AST_AGENT_FD, p->chan->fds[AST_TIMING_FD]); \ + ast_channel_set_fd(ast, AST_AGENT_FD, ast_channel_fd(p->chan, AST_TIMING_FD)); \ } \ } while(0) -- cgit v1.2.3