diff options
author | Walter Doekes <walter+asterisk@wjd.nu> | 2012-02-08 20:49:48 +0000 |
---|---|---|
committer | Walter Doekes <walter+asterisk@wjd.nu> | 2012-02-08 20:49:48 +0000 |
commit | db24fc2523da16bd812abb2a35b6320d24083e3f (patch) | |
tree | 4f4d564d4c32538014aefd01789f3f2bffc5520e /apps/app_dial.c | |
parent | 0adeb88318467f75f84a70990b1f982b9ca470f3 (diff) |
Avoid cppcheck warnings; removing unused vars and a bit of cleanup.
Patch by: Clod Patry
Review: https://reviewboard.asterisk.org/r/1651
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@354429 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_dial.c')
-rw-r--r-- | apps/app_dial.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/app_dial.c b/apps/app_dial.c index 18cbe8d76..d900f4f2c 100644 --- a/apps/app_dial.c +++ b/apps/app_dial.c @@ -1706,7 +1706,6 @@ static int setup_privacy_args(struct privacy_args *pa, char callerid[60]; int res; char *l; - int silencethreshold; if (chan->caller.id.number.valid && !ast_strlen_zero(chan->caller.id.number.str)) { @@ -1781,7 +1780,7 @@ static int setup_privacy_args(struct privacy_args *pa, "At the tone, please say your name:" */ - silencethreshold = ast_dsp_get_threshold_from_settings(THRESHOLD_SILENCE); + int silencethreshold = ast_dsp_get_threshold_from_settings(THRESHOLD_SILENCE); ast_answer(chan); res = ast_play_and_record(chan, "priv-recordintro", pa->privintro, 4, "sln", &duration, NULL, silencethreshold, 2000, 0); /* NOTE: I've reduced the total time to 4 sec */ /* don't think we'll need a lock removed, we took care of |