diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1999-08-04 02:39:12 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1999-08-04 02:39:12 +0000 |
commit | 3d20b8c47ee59df3a5bea7b3842444b9ff7f3e39 (patch) | |
tree | 987ed4a510d9086983d2a107dc4d81e64a589a81 /ace/Malloc.cpp | |
parent | b316842d59c69308750c3171c05d0152f6d616cb (diff) | |
download | ATCD-3d20b8c47ee59df3a5bea7b3842444b9ff7f3e39.tar.gz |
ChangeLogTag:Tue Aug 3 18:50:02 1999 Douglas C. Schmidt <schmidt@tango.cs.wustl.edu>
Diffstat (limited to 'ace/Malloc.cpp')
-rw-r--r-- | ace/Malloc.cpp | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/ace/Malloc.cpp b/ace/Malloc.cpp index 2fa2b29cc07..f4d6d1274b7 100644 --- a/ace/Malloc.cpp +++ b/ace/Malloc.cpp @@ -29,8 +29,8 @@ ACE_Control_Block::dump (void) const ACE_TRACE ("ACE_Control_Block::dump"); ACE_DEBUG ((LM_DEBUG, ACE_BEGIN_DUMP, this)); - ACE_POINTER_CAST (this->name_head_)->dump (); - ACE_DEBUG ((LM_DEBUG, ASYS_TEXT("freep_ = %x"), ACE_POINTER_CAST (this->freep_))); + ((ACE_Name_Node *) this->name_head_)->dump (); + ACE_DEBUG ((LM_DEBUG, ASYS_TEXT("freep_ = %x"), (ACE_Malloc_Header *) this->freep_)); ACE_DEBUG ((LM_DEBUG, ACE_END_DUMP)); } @@ -49,7 +49,7 @@ ACE_Name_Node::ACE_Name_Node (const char *name, next_ (next) { ACE_TRACE ("ACE_Name_Node::ACE_Name_Node"); - char *n = ACE_POINTER_CAST (this->name_); + char *n = this->name_; ACE_OS::strcpy (n, name); } @@ -62,7 +62,8 @@ ACE_Name_Node::ACE_Name_Node (const ACE_Name_Node &) const char * ACE_Name_Node::name (void) const { - return ACE_POINTER_CAST (this->name_); + const char *c = this->name_; + return c; } void @@ -77,9 +78,12 @@ ACE_Name_Node::dump (void) const ACE_TRACE ("ACE_Name_Node"); ACE_DEBUG ((LM_DEBUG, ACE_BEGIN_DUMP, this)); - ACE_DEBUG ((LM_DEBUG, ASYS_TEXT("pointer = %x"), ACE_POINTER_CAST (this->pointer_))); - ACE_DEBUG ((LM_DEBUG, ASYS_TEXT("\nnext_ = %x"), ACE_POINTER_CAST (this->next_))); - ACE_DEBUG ((LM_DEBUG, ASYS_TEXT("\nname_ = (%x, %s)"), ACE_POINTER_CAST (this->name_), ACE_POINTER_CAST (this->name_))); + ACE_DEBUG ((LM_DEBUG, ASYS_TEXT("pointer = %x"), (const char *) this->pointer_)); + ACE_DEBUG ((LM_DEBUG, ASYS_TEXT("\nnext_ = %x"), (ACE_Name_Node *) this->next_)); + ACE_DEBUG ((LM_DEBUG, + ASYS_TEXT("\nname_ = (%x, %s)"), + (const char *) this->name_, + (const char *) this->name_)); ACE_DEBUG ((LM_DEBUG, ASYS_TEXT("\n"))); ACE_DEBUG ((LM_DEBUG, ACE_END_DUMP)); } |