diff options
author | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-10-02 23:03:56 +0000 |
---|---|---|
committer | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-10-02 23:03:56 +0000 |
commit | 4aa141d784b970f4f0a78355afc003bbf24dd205 (patch) | |
tree | 2a25cb8641fdce1066c4e245f557bbe8d36a46d5 /examples/Naming/test_non_existent.cpp | |
parent | 5988f31115d6c042d7fdc7e48ebeed0de3b173ea (diff) | |
download | ATCD-4aa141d784b970f4f0a78355afc003bbf24dd205.tar.gz |
*** empty log message ***
Diffstat (limited to 'examples/Naming/test_non_existent.cpp')
-rw-r--r-- | examples/Naming/test_non_existent.cpp | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/examples/Naming/test_non_existent.cpp b/examples/Naming/test_non_existent.cpp index 6f9b4f3dd3c..a78bc26ab20 100644 --- a/examples/Naming/test_non_existent.cpp +++ b/examples/Naming/test_non_existent.cpp @@ -4,24 +4,30 @@ int main (int, char *[]) { int i; - ACE_Naming_Context * ns_ptr = new ACE_Naming_Context(); + ACE_Naming_Context * ns_ptr = new ACE_Naming_Context (); ACE_Name_Options *name_options = ns_ptr->name_options (); #if defined (ACE_WIN32) - char * m_argv[] = {"MyName","-cNODE_LOCAL" ,"-lC:\\tmp\\namespacedir\\MyName",NULL}; + char * m_argv[] = {"MyName", + "-cNODE_LOCAL" , + "-lC:\\temp\\non_existent", + NULL}; #else - char * m_argv[] = {"MyName","-cNODE_LOCAL" ,"-l/tmp/foobar.mine",NULL}; + char * m_argv[] = {"MyName", + "-cNODE_LOCAL" , + "-l/tmp/foobar.mine", + NULL}; #endif - int m_argc = sizeof ( m_argv ) / sizeof ( char * ) -1; + int m_argc = sizeof (m_argv) / sizeof (char *) -1; - name_options->parse_args(m_argc,m_argv); + name_options->parse_args (m_argc,m_argv); i = ns_ptr->open (ACE_Naming_Context::NODE_LOCAL); - cout << ::getpid() << ": opened with " << i << endl; - if ( i != 0 ) return -1; + cout << ACE_OS::getpid () << ": opened with " << i << endl; + if (i != 0) return -1; - i = ns_ptr->bind("Key_Value","Val_Value","-"); + i = ns_ptr->bind ("Key_Value","Val_Value","-"); - cout << ::getpid() << ": bound with " << i << endl; + cout << ACE_OS::getpid () << ": bound with " << i << endl; return 0; |