diff options
author | marina <marina@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-08-24 05:51:37 +0000 |
---|---|---|
committer | marina <marina@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-08-24 05:51:37 +0000 |
commit | bed29efab6bb4b7901048031eebcd8b540d40fd5 (patch) | |
tree | e6b1b3f5d37bc1d57f6a88e8456ef0c23f22d676 /TAO/examples | |
parent | c1c7ff4145c6d7f3c678535aafa5c37ff1259ca8 (diff) | |
download | ATCD-bed29efab6bb4b7901048031eebcd8b540d40fd5.tar.gz |
ChangeLogTag:Tue Aug 24 00:47:47 1999 Marina Spivak <marina@cs.wustl.edu>
Diffstat (limited to 'TAO/examples')
5 files changed, 6 insertions, 9 deletions
diff --git a/TAO/examples/Load_Balancing/Identity_Client.cpp b/TAO/examples/Load_Balancing/Identity_Client.cpp index 7180a89a8a7..5666868de72 100644 --- a/TAO/examples/Load_Balancing/Identity_Client.cpp +++ b/TAO/examples/Load_Balancing/Identity_Client.cpp @@ -148,7 +148,7 @@ Identity_Client::run (CORBA::Environment &ACE_TRY_ENV) Identity_var identity_object; CORBA::String_var identity; - for (i = 0; i < this->number_of_invocations_; ++i) + for (size_t ind = 0; ind < this->number_of_invocations_; ++ind) { obj = object_group->resolve (ACE_TRY_ENV); ACE_CHECK_RETURN (-1); @@ -165,7 +165,7 @@ Identity_Client::run (CORBA::Environment &ACE_TRY_ENV) ACE_CHECK_RETURN (-1); ACE_DEBUG ((LM_DEBUG, "Invocation %d: %s\n", - i, + ind, identity.in ())); ACE_CHECK_RETURN (-1); } @@ -180,7 +180,7 @@ Identity_Client::~Identity_Client (void) int main (int argc, char *argv[]) { - int result; + int result = 0; Identity_Client client; if (client.init (argc, argv) == -1) diff --git a/TAO/examples/Load_Balancing/Identity_Server.cpp b/TAO/examples/Load_Balancing/Identity_Server.cpp index 7563b394a85..e35ff38769c 100644 --- a/TAO/examples/Load_Balancing/Identity_Server.cpp +++ b/TAO/examples/Load_Balancing/Identity_Server.cpp @@ -189,7 +189,7 @@ Identity_Server::~Identity_Server (void) int main (int argc, char *argv[]) { - int result; + int result = 0; Identity_Server server; if (server.init (argc, argv) == -1) diff --git a/TAO/examples/Load_Balancing/Identity_i.cpp b/TAO/examples/Load_Balancing/Identity_i.cpp index 683b3fb382d..30ceeeac9ac 100644 --- a/TAO/examples/Load_Balancing/Identity_i.cpp +++ b/TAO/examples/Load_Balancing/Identity_i.cpp @@ -28,5 +28,6 @@ Identity_i::get_name (CORBA::String_out name, CORBA::Environment &ACE_TRY_ENV) ACE_THROW_SPEC ((CORBA::SystemException)) { + ACE_UNUSED_ARG (ACE_TRY_ENV); name = this->name_.in (); } diff --git a/TAO/examples/Load_Balancing/Load_Balancer_i.cpp b/TAO/examples/Load_Balancing/Load_Balancer_i.cpp index bca9161998b..7753b9caf70 100644 --- a/TAO/examples/Load_Balancing/Load_Balancer_i.cpp +++ b/TAO/examples/Load_Balancing/Load_Balancer_i.cpp @@ -435,8 +435,6 @@ template class ACE_Hash_Map_Iterator<ACE_CString, CORBA::Object_var, ACE_Null_Mu template class ACE_Hash_Map_Iterator_Ex<ACE_CString, CORBA::Object_var, ACE_Hash<ACE_CString>, ACE_Equal_To<ACE_CString>, ACE_Null_Mutex>; template class ACE_Hash_Map_Manager_Ex<ACE_CString, CORBA::Object_var, ACE_Hash<ACE_CString>, ACE_Equal_To<ACE_CString>, ACE_Null_Mutex>; template class ACE_Hash_Map_Manager<ACE_CString, CORBA::Object_var, ACE_Null_Mutex>; -template class ACE_Hash<ACE_CString>; -template class ACE_Equal_To<ACE_CString>; template class ACE_Hash_Map_Entry<ACE_CString, CORBA::Object_var>; template class ACE_DLList<ACE_CString>; @@ -459,8 +457,6 @@ template class ACE_Auto_Basic_Ptr<Object_Group_i>; #pragma instantiate ACE_Hash_Map_Iterator_Ex<ACE_CString, CORBA::Object_var, ACE_Hash<ACE_CString>, ACE_Equal_To<ACE_CString>, ACE_Null_Mutex> #pragma instantiate ACE_Hash_Map_Manager_Ex<ACE_CString, CORBA::Object_var, ACE_Hash<ACE_CString>, ACE_Equal_To<ACE_CString>, ACE_Null_Mutex> #pragma instantiate ACE_Hash_Map_Manager<ACE_CString, CORBA::Object_var, ACE_Null_Mutex> -#pragma instantiate ACE_Hash<ACE_CString> -#pragma instantiate ACE_Equal_To<ACE_CString> #pragma instantiate ACE_Hash_Map_Entry<ACE_CString, CORBA::Object_var> #pragma instantiate ACE_DLList<ACE_CString> diff --git a/TAO/examples/Load_Balancing/Load_Balancing_Service.cpp b/TAO/examples/Load_Balancing/Load_Balancing_Service.cpp index 3ba3cfae1b2..9fe84bc06a0 100644 --- a/TAO/examples/Load_Balancing/Load_Balancing_Service.cpp +++ b/TAO/examples/Load_Balancing/Load_Balancing_Service.cpp @@ -134,7 +134,7 @@ Load_Balancing_Service::~Load_Balancing_Service (void) int main (int argc, char *argv[]) { - int result; + int result = 0; Load_Balancing_Service factory; if (factory.init (argc, argv) == -1) |