From db24fc2523da16bd812abb2a35b6320d24083e3f Mon Sep 17 00:00:00 2001 From: Walter Doekes Date: Wed, 8 Feb 2012 20:49:48 +0000 Subject: 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 --- apps/app_alarmreceiver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/app_alarmreceiver.c') diff --git a/apps/app_alarmreceiver.c b/apps/app_alarmreceiver.c index 20171e023..44782f0c7 100644 --- a/apps/app_alarmreceiver.c +++ b/apps/app_alarmreceiver.c @@ -251,7 +251,7 @@ static int receive_dtmf_digits(struct ast_channel *chan, char *digit_string, int break; } - if ((r = ast_waitfor(chan, -1) < 0)) { + if ((r = ast_waitfor(chan, -1)) < 0) { ast_debug(1, "Waitfor returned %d\n", r); continue; } -- cgit v1.2.3