summaryrefslogtreecommitdiff
path: root/ace/Naming_Context.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ace/Naming_Context.cpp')
-rw-r--r--ace/Naming_Context.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/ace/Naming_Context.cpp b/ace/Naming_Context.cpp
index b165a601ac9..d0ff74ee5c5 100644
--- a/ace/Naming_Context.cpp
+++ b/ace/Naming_Context.cpp
@@ -585,11 +585,11 @@ ACE_Name_Options::parse_args (int argc, char *argv[])
{
case 'c':
{
- if (ACE_OS::strcmp (get_opt.optarg, "PROC_LOCAL") == 0)
+ if (ACE_OS::strcmp (get_opt.optarg, "PROC_LOCAL"))
this->context (ACE_Naming_Context::PROC_LOCAL);
- else if (ACE_OS::strcmp (get_opt.optarg, "NODE_LOCAL") == 0)
+ else if (ACE_OS::strcmp (get_opt.optarg, "NODE_LOCAL"))
this->context (ACE_Naming_Context::NODE_LOCAL);
- else if (ACE_OS::strcmp (get_opt.optarg, "NET_LOCAL") == 0)
+ else if (ACE_OS::strcmp (get_opt.optarg, "NET_LOCAL"))
this->context (ACE_Naming_Context::NET_LOCAL);
}
break;