summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbala <balanatarajan@users.noreply.github.com>2003-02-13 19:14:22 +0000
committerbala <balanatarajan@users.noreply.github.com>2003-02-13 19:14:22 +0000
commit65a2051802d92296e1e97dff9ad4afde157d650d (patch)
treee76d48d8cdf8d4e27f19976f28960e98606d2409
parentedd4759adaab77b127ac5b5a51cf5b70728dbd26 (diff)
downloadATCD-65a2051802d92296e1e97dff9ad4afde157d650d.tar.gz
ChangeLogTag: Thu Feb 13 14:21:43 2003 Balachandran Natarajan <bala@isis-server.isis.vanderbilt.edu>
-rw-r--r--TAO/ChangeLog5
-rw-r--r--TAO/utils/catior/catior.cpp7
2 files changed, 11 insertions, 1 deletions
diff --git a/TAO/ChangeLog b/TAO/ChangeLog
index 2d4b29e1fdb..6e750f65083 100644
--- a/TAO/ChangeLog
+++ b/TAO/ChangeLog
@@ -1,3 +1,8 @@
+Thu Feb 13 14:21:43 2003 Balachandran Natarajan <bala@isis-server.isis.vanderbilt.edu>
+
+ * utils/catior/catior.cpp: Fixed warnings and errors on various
+ platforms.
+
Thu Feb 13 12:43:27 2003 Pradeep Gore <pradeep@oomworks.com>
* examples/RTCORBA/Activity/Periodic_Task.h:
diff --git a/TAO/utils/catior/catior.cpp b/TAO/utils/catior/catior.cpp
index 0e1a2ac3a16..ddfc5300b9b 100644
--- a/TAO/utils/catior/catior.cpp
+++ b/TAO/utils/catior/catior.cpp
@@ -125,8 +125,10 @@ catiiop (char* string
static CORBA::Boolean
cat_iiop_profile (TAO_InputCDR& cdr);
+#if 0
static CORBA::Boolean
cat_sciop_profile (TAO_InputCDR& cdr);
+#endif /*if 0*/
static CORBA::Boolean
cat_uiop_profile (TAO_InputCDR& cdr);
@@ -641,7 +643,8 @@ cat_tag_policies (TAO_InputCDR& stream) {
for (unsigned int iter=0; iter < policies.length() ; iter++) {
// Create new stream for pvalue contents
- char pmbuf[policies[iter].pvalue.length()];
+ char *pmbuf = new char [policies[iter].pvalue.length()];
+
for (unsigned int biter=0 ;
biter < policies[iter].pvalue.length() - sizeof(int) ;
biter++) {
@@ -751,6 +754,8 @@ cat_tag_policies (TAO_InputCDR& stream) {
"%I Policy #%d Type: %d (UNKNOWN)\n", iter+1,
policies[iter].ptype));
}
+
+ delete [] pmbuf;
}
return 1;