Fix dev mode ooh323 warnings
authorAlexandr Anikin <may@telecom-service.ru>
Thu, 5 Jul 2012 11:42:23 +0000 (11:42 +0000)
committerAlexandr Anikin <may@telecom-service.ru>
Thu, 5 Jul 2012 11:42:23 +0000 (11:42 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@369620 65c4cc65-6c06-0410-ace0-fbb531ad65f3

addons/ooh323c/src/ooCmdChannel.c
addons/ooh323c/src/ooStackCmds.c
addons/ooh323c/src/ooq931.c

index 17e9e9a..245fba5 100644 (file)
@@ -16,6 +16,7 @@
 
 #include "asterisk.h"
 #include "asterisk/lock.h"
+#include "asterisk/utils.h"
 #include "ooStackCmds.h"
 #include "ootrace.h"
 #include "ooq931.h"
index 8513e44..f2c26a5 100644 (file)
@@ -15,6 +15,7 @@
  *****************************************************************************/
 #include "asterisk.h"
 #include "asterisk/lock.h"
+#include "asterisk/utils.h"
 
 #include "ooStackCmds.h"
 #include "ooh323ep.h"
index d67299d..69d1414 100644 (file)
@@ -875,7 +875,7 @@ int ooEncodeH225Message(OOH323CallData *call, Q931Message *pq931Msg,
 
 int ooHandleFastStartChannels(OOH323CallData *pCall)
 {
-   int i = 0, j = 0, remoteMediaControlPort = 0, dir = 0;
+   int i = 0, remoteMediaControlPort = 0, dir = 0;
    char remoteMediaControlIP[2 + 8 * 4 + 7];
    DListNode *pNode = NULL;
    H245OpenLogicalChannel *olc = NULL;
@@ -889,7 +889,7 @@ int ooHandleFastStartChannels(OOH323CallData *pCall)
 
       /* Go though all the proposed channels */
 
-      for (i = 0, j = 0; i < (int)pCall->remoteFastStartOLCs.count; i++) {
+      for (i = 0; i < (int)pCall->remoteFastStartOLCs.count; i++) {
 
          pNode = dListFindByIndex(&pCall->remoteFastStartOLCs, i);
          olc = (H245OpenLogicalChannel*)pNode->data;