Author: file
Date: Mon Jul 23 12:48:51 2007
New Revision: 76618
URL: http://svn.digium.com/view/asterisk?view=rev&rev=76618
Log:
Allow app_morsecode to build on PPC Linux by putting the value of the digit
char in an int.
Modified:
branches/1.4/apps/app_morsecode.c
Modified: branches/1.4/apps/app_morsecode.c
URL:
http://svn.digium.com/view/asterisk/branches/1.4/apps/app_morsecode.c?view=diff&rev=76618&r1=76617&r2=76618
==============================================================================
--- branches/1.4/apps/app_morsecode.c (original)
+++ branches/1.4/apps/app_morsecode.c Mon Jul 23 12:48:51 2007
@@ -134,11 +134,12 @@
}
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 == '.') {
_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--
svn-commits mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/svn-commits