[asterisk-commits] mmichelson: trunk r228658 - in /trunk/addons/ooh323c/src: ooh245.c ooh323.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Nov 6 16:00:14 CST 2009


Author: mmichelson
Date: Fri Nov  6 16:00:12 2009
New Revision: 228658

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=228658
Log:
Get chan_ooh323 to compile with gcc 4.2.

For some reason, the code compiles just fine with later versions
of GCC, but this one requires some weird double casting in order
to get rid of all warnings. Whatever.


Modified:
    trunk/addons/ooh323c/src/ooh245.c
    trunk/addons/ooh323c/src/ooh323.c

Modified: trunk/addons/ooh323c/src/ooh245.c
URL: http://svnview.digium.com/svn/asterisk/trunk/addons/ooh323c/src/ooh245.c?view=diff&rev=228658&r1=228657&r2=228658
==============================================================================
--- trunk/addons/ooh323c/src/ooh245.c (original)
+++ trunk/addons/ooh323c/src/ooh245.c Fri Nov  6 16:00:12 2009
@@ -3201,7 +3201,7 @@
       ooFreeH245Message(call, ph245msg);
       return OO_FAILED;
    }
-   strcpy((char*)indication->u.userInput->u.alphanumeric, data);
+   strcpy(*(char**)indication->u.userInput->u.alphanumeric, data);
    OOTRACEDBGA3 ("Built UserInputIndication_alphanumeric (%s, %s)\n", 
                  call->callType, call->callToken);
 
@@ -3264,7 +3264,7 @@
       ooFreeH245Message(call, ph245msg);
       return OO_FAILED;
    }
-   strcpy((char*)indication->u.userInput->u.signal->signalType, data);
+   strcpy(*(char**)indication->u.userInput->u.signal->signalType, data);
    OOTRACEDBGA3 ("Built UserInputIndication_signal (%s, %s)\n", 
                  call->callType, call->callToken);
 

Modified: trunk/addons/ooh323c/src/ooh323.c
URL: http://svnview.digium.com/svn/asterisk/trunk/addons/ooh323c/src/ooh323.c?view=diff&rev=228658&r1=228657&r2=228658
==============================================================================
--- trunk/addons/ooh323c/src/ooh323.c (original)
+++ trunk/addons/ooh323c/src/ooh323.c Fri Nov  6 16:00:12 2009
@@ -2167,7 +2167,7 @@
                memFreePtr(pctxt, pPrefixEntry);
                return OO_FAILED;
             }
-            strcpy((char*)pPrefixEntry->prefix.u.dialedDigits, pAlias->value);
+            strcpy(*(char**)pPrefixEntry->prefix.u.dialedDigits, pAlias->value);
             bValid = TRUE;
             break;
          default:
@@ -2220,7 +2220,7 @@
                memFreePtr(pctxt, pAliasEntry);
                return OO_FAILED;
             }
-            strcpy((char*)pAliasEntry->u.dialedDigits, pAlias->value);
+            strcpy(*(char**)pAliasEntry->u.dialedDigits, pAlias->value);
             bValid = TRUE;
             break;
          case T_H225AliasAddress_h323_ID:
@@ -2249,7 +2249,7 @@
                memFreePtr(pctxt, pAliasEntry);               
                return OO_FAILED;
             }
-            strcpy((char*)pAliasEntry->u.url_ID, pAlias->value);
+            strcpy(*(char**)pAliasEntry->u.url_ID, pAlias->value);
             bValid = TRUE;
             break;
          case T_H225AliasAddress_email_ID:
@@ -2262,7 +2262,7 @@
                            "alias entry \n");
                return OO_FAILED;
             }
-            strcpy((char*)pAliasEntry->u.email_ID, pAlias->value);
+            strcpy(*(char**)pAliasEntry->u.email_ID, pAlias->value);
             bValid = TRUE;
             break;
          default:




More information about the asterisk-commits mailing list