aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-07-23 17:48:51 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-07-23 17:48:51 +0000
commitc2af80d220584cf84f5542d5acde79cf30ba37f3 (patch)
tree39fbefe2657ea424581d3f49f50216d4c41142a2 /apps
parentc97045f28d9eeca594783bf78de7ce9c764702c6 (diff)
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/branches/1.4@76618 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-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 cd4211231..aec946a09 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 == '.') {