Author: file
Date: Mon Jul 23 12:49:45 2007
New Revision: 76619

URL: http://svn.digium.com/view/asterisk?view=rev&rev=76619
Log:
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.

........

Modified:
    trunk/   (props changed)
    trunk/apps/app_morsecode.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.

Modified: trunk/apps/app_morsecode.c
URL: 
http://svn.digium.com/view/asterisk/trunk/apps/app_morsecode.c?view=diff&rev=76619&r1=76618&r2=76619
==============================================================================
--- trunk/apps/app_morsecode.c (original)
+++ trunk/apps/app_morsecode.c Mon Jul 23 12:49:45 2007
@@ -130,11 +130,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

Reply via email to