From 6bd7bd55df12c9701c077aa5f80211fb0076347f Mon Sep 17 00:00:00 2001 From: schmidt Date: Mon, 7 Jun 1999 22:14:11 +0000 Subject: . --- ChangeLog-99b | 8 ++++++++ examples/Naming/test_multiple_contexts.cpp | 8 ++++++-- examples/Naming/test_writers.cpp | 6 +++--- 3 files changed, 17 insertions(+), 5 deletions(-) diff --git a/ChangeLog-99b b/ChangeLog-99b index 19552dd75d3..3371a9fbbd2 100644 --- a/ChangeLog-99b +++ b/ChangeLog-99b @@ -1,3 +1,11 @@ +Mon Jun 7 17:09:56 1999 Douglas C. Schmidt + + * examples/Naming/test_multiple_contexts.cpp (main): Added a cast + to resolve const problems. Thanks to David for reporting this. + + * examples/Naming/test_writers.cpp (main): Fixed a typo. Thanks + to David for reporting this. + Mon Jun 7 14:21:48 1999 Kirthika Parameswaran * tests/DLL_Test.cpp (main): ANSI C++ spec doesnt allow void * to diff --git a/examples/Naming/test_multiple_contexts.cpp b/examples/Naming/test_multiple_contexts.cpp index 8665343a7e0..307260c250b 100644 --- a/examples/Naming/test_multiple_contexts.cpp +++ b/examples/Naming/test_multiple_contexts.cpp @@ -66,10 +66,14 @@ int main (int, char *[]) if (i != 0) return -1; - name_options1->parse_args (n_argc, n_argv); + name_options1->parse_args (n_argc, + (char **) n_argv); + i = ns_ptr1->open (ACE_Naming_Context::NODE_LOCAL); + ACE_DEBUG ((LM_DEBUG, - "(%P) 1 opened with %d\n", i)); + "(%P) 1 opened with %d\n", + i)); if (i != 0) return -1; diff --git a/examples/Naming/test_writers.cpp b/examples/Naming/test_writers.cpp index fae9b918160..460667815c8 100644 --- a/examples/Naming/test_writers.cpp +++ b/examples/Naming/test_writers.cpp @@ -52,9 +52,9 @@ int main (int, char *[]) ACE_OS::sprintf (val, "Val%05d", l); - i = ns.bind (key, - val, - type); + i = ns_ptr->bind (key, + val, + type); ACE_DEBUG ((LM_DEBUG, "%d: bind of %s: %d\n", ACE_OS::getpid (), -- cgit v1.2.1