diff options
Diffstat (limited to 'TAO/performance-tests/Pluggable/PP_Test_Server.cpp')
-rw-r--r-- | TAO/performance-tests/Pluggable/PP_Test_Server.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/TAO/performance-tests/Pluggable/PP_Test_Server.cpp b/TAO/performance-tests/Pluggable/PP_Test_Server.cpp index c9fa75b0a74..84c09c6b6a1 100644 --- a/TAO/performance-tests/Pluggable/PP_Test_Server.cpp +++ b/TAO/performance-tests/Pluggable/PP_Test_Server.cpp @@ -27,8 +27,7 @@ PP_Test_Server::parse_args (void) if (this->ior_output_file_ == 0) ACE_ERROR_RETURN ((LM_ERROR, "Unable to open %s for writing: %p\n", - get_opts.optarg), - -1); + get_opts.optarg), -1); break; case '?': default: @@ -38,7 +37,7 @@ PP_Test_Server::parse_args (void) " [-o] <ior_output_file>" "\n", argv_ [0]), - -1); + 1); } // Indicates successful parsing of command line. @@ -64,11 +63,9 @@ PP_Test_Server::init (int argc, this->argc_ = argc; this->argv_ = argv; - if (this->parse_args () == -1) - ACE_ERROR_RETURN ((LM_ERROR, - "%p\n", - "parse_args"), - -1); + this->parse_args (); + // @@ Check for the return value here. + // Get the orb CORBA::ORB_var orb = this->orb_manager_.orb (); |