From: Joshua Colp Date: Mon, 23 Jul 2007 17:48:51 +0000 (+0000) Subject: Allow app_morsecode to build on PPC Linux by putting the value of the digit char... X-Git-Tag: 1.4.9~11 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1fc0771298438d32897af6f2cb6ee271df23d305;p=thirdparty%2Fasterisk.git Allow app_morsecode to build on PPC Linux by putting the value of the digit char in an int. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@76618 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_morsecode.c b/apps/app_morsecode.c index cd42112318..aec946a098 100644 --- a/apps/app_morsecode.c +++ b/apps/app_morsecode.c @@ -134,11 +134,12 @@ static int morsecode_exec(struct ast_channel *chan, void *data) } for (digit = data; *digit; digit++) { + int digit2 = *digit; char *dahdit; - if (*digit < 0) { + if (digit2 < 0) { continue; } - for (dahdit = morsecode[(int)*digit]; *dahdit; dahdit++) { + for (dahdit = morsecode[digit2]; *dahdit; dahdit++) { if (*dahdit == '-') { playtone(chan, tone, 3 * ditlen); } else if (*dahdit == '.') {