diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-03-26 14:49:50 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-03-26 14:49:50 +0000 |
commit | 511a8fa0328d5a5557b48eba26ea113a791a4c4c (patch) | |
tree | 468a9d54e7cb251e9e54c035535fdff25f312ad7 /tests | |
parent | 33a7ff0d9069a38adca69cb164c71074a9ec7264 (diff) | |
download | ATCD-511a8fa0328d5a5557b48eba26ea113a791a4c4c.tar.gz |
Changed ::sprintf calls to ACE_OS::sprintf.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Message_Queue_Test.cpp | 2 | ||||
-rw-r--r-- | tests/Naming_Test.cpp | 26 |
2 files changed, 14 insertions, 14 deletions
diff --git a/tests/Message_Queue_Test.cpp b/tests/Message_Queue_Test.cpp index 4361f55b6b5..dd8f1094802 100644 --- a/tests/Message_Queue_Test.cpp +++ b/tests/Message_Queue_Test.cpp @@ -37,7 +37,7 @@ main (int, char *[]) { char *buffer; ACE_NEW_RETURN (buffer, char[BUFSIZ], -1); - ::sprintf (buffer, "%d", i); + ACE_OS::sprintf (buffer, "%d", i); ACE_Message_Block *entry; diff --git a/tests/Naming_Test.cpp b/tests/Naming_Test.cpp index 642c9098818..8951b2051ba 100644 --- a/tests/Naming_Test.cpp +++ b/tests/Naming_Test.cpp @@ -72,13 +72,13 @@ test_bind (ACE_Naming_Context &ns_context) // do the binds for (size_t i = 0; i < ACE_NS_MAX_ENTRIES; i++) { - sprintf (name, "%s%d", "name", array[i]); + ACE_OS::sprintf (name, "%s%d", "name", array[i]); ACE_WString w_name (name); - sprintf (value, "%s%d", "value", array[i]); + ACE_OS::sprintf (value, "%s%d", "value", array[i]); ACE_WString w_value (value); - sprintf (type, "%s%d", "type", array [i]); + ACE_OS::sprintf (type, "%s%d", "type", array [i]); ACE_ASSERT (ns_context.bind (w_name, w_value, type) != -1); } } @@ -86,7 +86,7 @@ test_bind (ACE_Naming_Context &ns_context) static void test_find_failure (ACE_Naming_Context &ns_context) { - sprintf (name, "%s", "foo-bar"); + ACE_OS::sprintf (name, "%s", "foo-bar"); ACE_WString w_name (name); ACE_WString w_value; char *l_type = 0; @@ -105,13 +105,13 @@ test_rebind (ACE_Naming_Context &ns_context) // do the rebinds for (size_t i = 0; i < ACE_NS_MAX_ENTRIES; i++) { - sprintf (name, "%s%d", "name", array[i]); + ACE_OS::sprintf (name, "%s%d", "name", array[i]); ACE_WString w_name (name); - sprintf (value, "%s%d", "value", -array[i]); + ACE_OS::sprintf (value, "%s%d", "value", -array[i]); ACE_WString w_value (value); - sprintf (type, "%s%d", "type", -array[i]); + ACE_OS::sprintf (type, "%s%d", "type", -array[i]); ACE_ASSERT (ns_context.rebind (w_name, w_value, type) != -1); } } @@ -125,7 +125,7 @@ test_unbind (ACE_Naming_Context &ns_context) // do the unbinds for (size_t i = 0; i < ACE_NS_MAX_ENTRIES; i++) { - sprintf (name, "%s%d", "name", array[i]); + ACE_OS::sprintf (name, "%s%d", "name", array[i]); ACE_WString w_name (name); ACE_ASSERT (ns_context.unbind (w_name) != -1); } @@ -145,16 +145,16 @@ test_find (ACE_Naming_Context &ns_context, int sign, int result) { if (sign == 1) { - sprintf (temp_val, "%s%d", "value", array[i]); - sprintf (temp_type, "%s%d", "type", array[i]); + ACE_OS::sprintf (temp_val, "%s%d", "value", array[i]); + ACE_OS::sprintf (temp_type, "%s%d", "type", array[i]); } else { - sprintf (temp_val, "%s%d", "value", -array[i]); - sprintf (temp_type, "%s%d", "type", -array[i]); + ACE_OS::sprintf (temp_val, "%s%d", "value", -array[i]); + ACE_OS::sprintf (temp_type, "%s%d", "type", -array[i]); } - sprintf (name, "%s%d", "name", array[i]); + ACE_OS::sprintf (name, "%s%d", "name", array[i]); ACE_WString w_name (name); ACE_WString w_value; |