From 4fb2dc87b5ac0acca6fa0c7115f6f877fc3717ef Mon Sep 17 00:00:00 2001 From: pgontla Date: Wed, 27 Mar 2002 20:33:23 +0000 Subject: ChangeLogTag: Wed Mar 27 12:31:33 2002 Priyanka Gontla --- TAO/ChangeLogs/ChangeLog-02a | 6 ++++++ TAO/orbsvcs/orbsvcs/Naming/Flat_File_Persistence.cpp | 12 +++++++----- 2 files changed, 13 insertions(+), 5 deletions(-) (limited to 'TAO') diff --git a/TAO/ChangeLogs/ChangeLog-02a b/TAO/ChangeLogs/ChangeLog-02a index f333d65621c..3ee231117af 100644 --- a/TAO/ChangeLogs/ChangeLog-02a +++ b/TAO/ChangeLogs/ChangeLog-02a @@ -1,3 +1,9 @@ +Wed Mar 27 12:31:33 2002 Priyanka Gontla + + * orbsvcs/orbsvcs/Naming/Flat_File_Persistence.cpp (operator <<): + Fixed the format specifier mismatch warnings on Redhat + IA64. Committing on behalf of Chad Elliott + Wed Mar 27 10:53:44 2002 Carlos O'Ryan * orbsvcs/performance-tests/RTEvent/Makefile: diff --git a/TAO/orbsvcs/orbsvcs/Naming/Flat_File_Persistence.cpp b/TAO/orbsvcs/orbsvcs/Naming/Flat_File_Persistence.cpp index 102e7d6cad7..a67364773cc 100644 --- a/TAO/orbsvcs/orbsvcs/Naming/Flat_File_Persistence.cpp +++ b/TAO/orbsvcs/orbsvcs/Naming/Flat_File_Persistence.cpp @@ -55,7 +55,7 @@ TAO_NS_FlatFileWriter::operator <<( if (this->fout_ != 0) { ACE_OS::fprintf(this->fout_, "%u\n%s\n%d\n", - context_name.length(), + ACE_static_cast(unsigned int, context_name.length()), context_name.c_str(), size); ACE_OS::fflush(this->fout_); @@ -76,23 +76,25 @@ TAO_NS_FlatFileWriter::operator <<( ACE_CString id = record.id(); - ACE_OS::fprintf(this->fout_, "%u\n%s\n", id.length(), id.c_str()); + ACE_OS::fprintf(this->fout_, "%u\n%s\n", + ACE_static_cast (unsigned int, id.length()), + id.c_str ()); ACE_CString kind = record.kind(); ACE_OS::fprintf(this->fout_, "%u\n%s\n", - kind.length(), + ACE_static_cast(unsigned int, kind.length()), kind.c_str()); ACE_CString ior = record.ior(); ACE_OS::fprintf(this->fout_, "%u\n%s\n", - ior.length(), + ACE_static_cast(unsigned int, ior.length()), ior.c_str()); ACE_CString context_binding = record.context_binding(); ACE_OS::fprintf(this->fout_, "%u\n%s\n", - context_binding.length(), + ACE_static_cast(unsigned int, context_binding.length()), context_binding.c_str()); ACE_OS::fflush(this->fout_); -- cgit v1.2.1