From 99cae5b7508f30a308afbbacf92ad306a30f68df Mon Sep 17 00:00:00 2001 From: Terry Wilson Date: Tue, 24 Jan 2012 20:12:09 +0000 Subject: Opaquify channel stringfields Continue channel opaque-ification by wrapping all of the stringfields. Eventually, we will restrict what can actually set these variables, but the purpose for now is to hide the implementation and keep people from adding code that directly accesses the channel structure. Semantic changes will follow afterward. Review: https://reviewboard.asterisk.org/r/1661/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@352348 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- addons/app_saycountpl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'addons/app_saycountpl.c') diff --git a/addons/app_saycountpl.c b/addons/app_saycountpl.c index b4441f24f..dce519d94 100644 --- a/addons/app_saycountpl.c +++ b/addons/app_saycountpl.c @@ -67,13 +67,13 @@ static int saywords(struct ast_channel *chan, char *word1, char *word2, char *wo if (num > 0) { if (num % 1000 == 1) { - ast_streamfile(chan, word1, chan->language); + ast_streamfile(chan, word1, ast_channel_language(chan)); d = ast_waitstream(chan,""); } else if (((num % 10) >= 2) && ((num % 10) <= 4 ) && ((num % 100) < 10 || (num % 100) > 20)) { - ast_streamfile(chan, word2, chan->language); + ast_streamfile(chan, word2, ast_channel_language(chan)); d = ast_waitstream(chan, ""); } else { - ast_streamfile(chan, word5, chan->language); + ast_streamfile(chan, word5, ast_channel_language(chan)); d = ast_waitstream(chan, ""); } } -- cgit v1.2.3