summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ace/Local_Name_Space_T.cpp4
-rw-r--r--ace/Registry.cpp6
2 files changed, 5 insertions, 5 deletions
diff --git a/ace/Local_Name_Space_T.cpp b/ace/Local_Name_Space_T.cpp
index 6f314beb30e..2c9b2fea116 100644
--- a/ace/Local_Name_Space_T.cpp
+++ b/ace/Local_Name_Space_T.cpp
@@ -387,7 +387,7 @@ ACE_Local_Name_Space<ACE_MEM_POOL_2, LOCK>::create_manager_i (void)
LPCTSTR postfix = database;
size_t length = 0;
- length = sizeof lock_name_for_local_name_space / sizeof TCHAR;
+ length = sizeof lock_name_for_local_name_space / sizeof (TCHAR);
ACE_OS::strncpy (lock_name_for_local_name_space,
__TEXT ("name_space_"),
length);
@@ -395,7 +395,7 @@ ACE_Local_Name_Space<ACE_MEM_POOL_2, LOCK>::create_manager_i (void)
postfix,
length - ACE_OS::strlen (__TEXT ("name_space_")));
- length = sizeof lock_name_for_backing_store / sizeof TCHAR;
+ length = sizeof lock_name_for_backing_store / sizeof (TCHAR);
ACE_OS::strncpy (lock_name_for_local_backing_store,
__TEXT ("backing_store_"),
length);
diff --git a/ace/Registry.cpp b/ace/Registry.cpp
index 251806a4926..204e8e4e9f3 100644
--- a/ace/Registry.cpp
+++ b/ace/Registry.cpp
@@ -907,7 +907,7 @@ ACE_Registry::Binding_Iterator::Object_Iteration::next_n (u_long how_many,
while (how_many > 0)
{
TCHAR string [ACE_Registry::Naming_Context::MAX_CONTEXT_NAME_SIZE];
- u_long size = sizeof string / sizeof TCHAR;
+ u_long size = sizeof string / sizeof (TCHAR);
long result = ::RegEnumValue (this->parent_->naming_context (). key(),
this->index_,
string,
@@ -977,7 +977,7 @@ ACE_Registry::Binding_Iterator::Context_Iteration::next_n (u_long how_many,
while (how_many > 0)
{
TCHAR string [ACE_Registry::Naming_Context::MAX_CONTEXT_NAME_SIZE];
- u_long size = sizeof string / sizeof TCHAR;
+ u_long size = sizeof string / sizeof (TCHAR);
long result = ::RegEnumKeyEx (this->parent_->naming_context (). key (),
this->index_,
string,
@@ -1082,7 +1082,7 @@ int
ACE_Predefined_Naming_Contexts::is_local_host (LPCTSTR machine_name)
{
TCHAR local_host[MAXHOSTNAMELEN];
- int result = ACE_OS::hostname (local_host, sizeof local_host / sizeof TCHAR);
+ int result = ACE_OS::hostname (local_host, sizeof local_host / sizeof (TCHAR));
if (result == 0)
result = !ACE_OS::strcmp (local_host, machine_name);
else