[prev in list] [next in list] [prev in thread] [next in thread] 

List:       helix-server-cvs
Subject:    [Server-cvs]
From:       svaidhya () helixcommunity ! org
Date:       2008-12-12 17:53:16
Message-ID: 200812121754.mBCHs7WZ032610 () mailer ! progressive-comp ! com
[Download RAW message or body]

Update of /cvsroot/server/broadcast/transport/rtp/recv
In directory cvs01.internal.helixcommunity.org:/tmp/cvs-serv22614

Modified Files:
      Tag: SERVER_12_1
	qtbcobj.cpp 
Log Message:
Synopsis
========

Resolving Build Buster  in Solaris


Branches:  SERVER_CURRENT, SERVER_12_1
Reviewer(s): Chytanya

Description
===========
Build Buster because solaris prohibits declaring a variable with same name
across for loops.
i.e for (UINT32 i = 0; ...)
    for (UINT32 i = 0; ...)
Solaris compiler didnt like this.

Declared  'i' only once


Files Affected
==========

/server/broadcast/transport/rtp/recv/qtbcobj.cpp
/protocol/common/util/altgrputil.cpp


Testing Performed
=================
Unit Tests:
None.

Integration Tests:
None

Leak Tests:
None.

Performance Tests:
None.

Platforms Tested: : sunos-5.10-sparc-server
Build verified: sunos-5.10-sparc-server 



Index: qtbcobj.cpp
===================================================================
RCS file: /cvsroot/server/broadcast/transport/rtp/recv/qtbcobj.cpp,v
retrieving revision 1.26.2.2.2.3
retrieving revision 1.26.2.2.2.4
diff -u -d -r1.26.2.2.2.3 -r1.26.2.2.2.4
--- qtbcobj.cpp	12 Dec 2008 01:45:22 -0000	1.26.2.2.2.3
+++ qtbcobj.cpp	12 Dec 2008 17:53:13 -0000	1.26.2.2.2.4
@@ -1388,7 +1388,9 @@
     //Set the UseRTP flag. QT streams always use RTP
 
     m_ppStreamHeaders = new IHXValues*[cHeaders - 1];
-    for (UINT32 i = 0; i < (cHeaders - 1); i++ )
+    UINT32 i = 0;
+
+    for (i = 0; i < (cHeaders - 1); i++ )
     {
 	m_ppStreamHeaders[i] = ppHeaders[i + 1];
 	m_ppStreamHeaders[i]->SetPropertyULONG32("ForceRTP", 1);
@@ -1425,7 +1427,7 @@
     //Handle Alt IDs
     rc =  CHXAltGroupUtil::HandleAltIDs(m_ulStreamCnt, m_ppStreamHeaders, m_pFileHeader);
 
-    for (UINT32 i = 0; i < m_ulStreamCnt; i++)
+    for (i = 0; i < m_ulStreamCnt; i++)
     {
 	// Create a new packet handler for this stream
 	QTStream* pStream = new QTStream(m_pContext);


_______________________________________________
Server-cvs mailing list
Server-cvs@helixcommunity.org
http://lists.helixcommunity.org/mailman/listinfo/server-cvs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic