aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_morsecode.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-07-23 17:49:45 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-07-23 17:49:45 +0000
commit20d8e30a214e39d6ca0abc58da7caba67e0bc265 (patch)
tree2a5d21396b3216cb8ba0c1cd7ba0d108227a423c /apps/app_morsecode.c
parent1043987fff62e6d4b6c94afcdbc883bd20507c20 (diff)
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: http://svn.digium.com/svn/asterisk/trunk@76619 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_morsecode.c')
-rw-r--r--apps/app_morsecode.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/app_morsecode.c b/apps/app_morsecode.c
index 2870d5afe..45b3c67a8 100644
--- a/apps/app_morsecode.c
+++ b/apps/app_morsecode.c
@@ -130,11 +130,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 == '.') {