summaryrefslogtreecommitdiff
path: root/ACE/ace/Shared_Memory_SV.cpp
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2007-05-29 07:08:16 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2007-05-29 07:08:16 +0000
commit0bdaa7567584649ef449e5d8d878ebf2f739fff4 (patch)
tree71d30794b8b840c0ead4c62ad289da29cf9e54c4 /ACE/ace/Shared_Memory_SV.cpp
parent224bdb9d4a763945e8c30646f0e0d69b544c8d33 (diff)
downloadATCD-0bdaa7567584649ef449e5d8d878ebf2f739fff4.tar.gz
Tue May 29 07:07:55 UTC 2007 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'ACE/ace/Shared_Memory_SV.cpp')
-rw-r--r--ACE/ace/Shared_Memory_SV.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/ACE/ace/Shared_Memory_SV.cpp b/ACE/ace/Shared_Memory_SV.cpp
index 8378b75d7dc..e16b181408e 100644
--- a/ACE/ace/Shared_Memory_SV.cpp
+++ b/ACE/ace/Shared_Memory_SV.cpp
@@ -25,7 +25,7 @@ ACE_Shared_Memory_SV::dump (void) const
}
ACE_Shared_Memory_SV::ACE_Shared_Memory_SV (key_t id,
- int length,
+ size_t length,
int create,
int perms,
void *addr,
@@ -37,13 +37,13 @@ ACE_Shared_Memory_SV::ACE_Shared_Memory_SV (key_t id,
// The overall size of the segment.
-int
+size_t
ACE_Shared_Memory_SV::get_segment_size (void) const
{
ACE_TRACE ("ACE_Shared_Memory_SV::get_segment_size");
// This cast is ok since the 'open' method for this class allows only
// an 'int' size. Therefore, this case should not lose information.
- return static_cast<int> (this->shared_memory_.get_segment_size ());
+ return this->shared_memory_.get_segment_size ();
}
// Removes the shared memory segment.