mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-08 02:48:29 +00:00
Merged revisions 76618 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r76618 | file | 2007-07-23 14:48:51 -0300 (Mon, 23 Jul 2007) | 2 lines 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/trunk@76619 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -130,11 +130,12 @@ static int morsecode_exec(struct ast_channel *chan, void *data)
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (digit = data; *digit; digit++) {
|
for (digit = data; *digit; digit++) {
|
||||||
|
int digit2 = *digit;
|
||||||
char *dahdit;
|
char *dahdit;
|
||||||
if (*digit < 0) {
|
if (digit2 < 0) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
for (dahdit = morsecode[(int)*digit]; *dahdit; dahdit++) {
|
for (dahdit = morsecode[digit2]; *dahdit; dahdit++) {
|
||||||
if (*dahdit == '-') {
|
if (*dahdit == '-') {
|
||||||
playtone(chan, tone, 3 * ditlen);
|
playtone(chan, tone, 3 * ditlen);
|
||||||
} else if (*dahdit == '.') {
|
} else if (*dahdit == '.') {
|
||||||
|
|||||||
Reference in New Issue
Block a user