diff options
author | Terry Wilson <twilson@digium.com> | 2012-02-20 23:43:27 +0000 |
---|---|---|
committer | Terry Wilson <twilson@digium.com> | 2012-02-20 23:43:27 +0000 |
commit | 57f42bd74f78d5022631b2ba2269892f8a3a384a (patch) | |
tree | 3283ec4ac88c5b3c267f4490b410e5331911f2bb /funcs/func_timeout.c | |
parent | 25e5eb3b96e6d9bcbb2fc02fbd879ae21104c1f5 (diff) |
ast_channel opaquification of pointers and integral types
Review: https://reviewboard.asterisk.org/r/1753/
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@356042 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'funcs/func_timeout.c')
-rw-r--r-- | funcs/func_timeout.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/funcs/func_timeout.c b/funcs/func_timeout.c index 0f5f369e5..aef0a4033 100644 --- a/funcs/func_timeout.c +++ b/funcs/func_timeout.c @@ -100,15 +100,15 @@ static int timeout_read(struct ast_channel *chan, const char *cmd, char *data, case 'r': case 'R': - if (chan->pbx) { - snprintf(buf, len, "%.3f", chan->pbx->rtimeoutms / 1000.0); + if (ast_channel_pbx(chan)) { + snprintf(buf, len, "%.3f", ast_channel_pbx(chan)->rtimeoutms / 1000.0); } break; case 'd': case 'D': - if (chan->pbx) { - snprintf(buf, len, "%.3f", chan->pbx->dtimeoutms / 1000.0); + if (ast_channel_pbx(chan)) { + snprintf(buf, len, "%.3f", ast_channel_pbx(chan)->dtimeoutms / 1000.0); } break; @@ -168,17 +168,17 @@ static int timeout_write(struct ast_channel *chan, const char *cmd, char *data, case 'r': case 'R': - if (chan->pbx) { - chan->pbx->rtimeoutms = when.tv_sec * 1000 + when.tv_usec / 1000; - ast_verb(3, "Response timeout set to %.3f\n", chan->pbx->rtimeoutms / 1000.0); + if (ast_channel_pbx(chan)) { + ast_channel_pbx(chan)->rtimeoutms = when.tv_sec * 1000 + when.tv_usec / 1000; + ast_verb(3, "Response timeout set to %.3f\n", ast_channel_pbx(chan)->rtimeoutms / 1000.0); } break; case 'd': case 'D': - if (chan->pbx) { - chan->pbx->dtimeoutms = when.tv_sec * 1000 + when.tv_usec / 1000; - ast_verb(3, "Digit timeout set to %.3f\n", chan->pbx->dtimeoutms / 1000.0); + if (ast_channel_pbx(chan)) { + ast_channel_pbx(chan)->dtimeoutms = when.tv_sec * 1000 + when.tv_usec / 1000; + ast_verb(3, "Digit timeout set to %.3f\n", ast_channel_pbx(chan)->dtimeoutms / 1000.0); } break; |