diff options
Diffstat (limited to 'TAO')
-rw-r--r-- | TAO/ChangeLogs/ChangeLog-02a | 6 | ||||
-rw-r--r-- | TAO/orbsvcs/orbsvcs/Naming/Flat_File_Persistence.cpp | 12 |
2 files changed, 13 insertions, 5 deletions
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 <pgontla@ece.uci.edu> + + * orbsvcs/orbsvcs/Naming/Flat_File_Persistence.cpp (operator <<): + Fixed the format specifier mismatch warnings on Redhat + IA64. Committing on behalf of Chad Elliott <elliott_c@ociweb.com> + Wed Mar 27 10:53:44 2002 Carlos O'Ryan <coryan@uci.edu> * 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_); |