summaryrefslogtreecommitdiff
path: root/channels/chan_nbs.c
diff options
context:
space:
mode:
authorTerry Wilson <twilson@digium.com>2012-02-24 00:32:20 +0000
committerTerry Wilson <twilson@digium.com>2012-02-24 00:32:20 +0000
commitebaf59a656ef94e19332c08e0d0562b8cbe59f65 (patch)
tree6e75fd13924808bddacc18e14d5e02975a322481 /channels/chan_nbs.c
parent235f88d12270b328ad466889189400666b3e56c1 (diff)
Opaquification for ast_format structs in struct ast_channel
Review: https://reviewboard.asterisk.org/r/1770/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@356573 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_nbs.c')
-rw-r--r--channels/chan_nbs.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/channels/chan_nbs.c b/channels/chan_nbs.c
index 882e165f8..e6384872e 100644
--- a/channels/chan_nbs.c
+++ b/channels/chan_nbs.c
@@ -227,10 +227,10 @@ static struct ast_channel *nbs_new(struct nbs_pvt *i, int state, const char *lin
ast_channel_set_fd(tmp, 0, nbs_fd(i->nbs));
ast_format_cap_add(ast_channel_nativeformats(tmp), &prefformat);
- ast_format_copy(&tmp->rawreadformat, &prefformat);
- ast_format_copy(&tmp->rawwriteformat, &prefformat);
- ast_format_copy(&tmp->writeformat, &prefformat);
- ast_format_copy(&tmp->readformat, &prefformat);
+ ast_format_copy(ast_channel_rawreadformat(tmp), &prefformat);
+ ast_format_copy(ast_channel_rawwriteformat(tmp), &prefformat);
+ ast_format_copy(ast_channel_writeformat(tmp), &prefformat);
+ ast_format_copy(ast_channel_readformat(tmp), &prefformat);
if (state == AST_STATE_RING)
ast_channel_rings_set(tmp, 1);
ast_channel_tech_pvt_set(tmp, i);