From 29f8d84cca7ef18fc81ad073efe2ee3f119f9265 Mon Sep 17 00:00:00 2001 From: nanbor Date: Sat, 20 Jun 1998 05:44:08 +0000 Subject: *** empty log message *** --- ace/Memory_Pool.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'ace/Memory_Pool.cpp') diff --git a/ace/Memory_Pool.cpp b/ace/Memory_Pool.cpp index b24f700a39e..bf0772c3475 100644 --- a/ace/Memory_Pool.cpp +++ b/ace/Memory_Pool.cpp @@ -626,26 +626,26 @@ ACE_Shared_Memory_Pool::ACE_Shared_Memory_Pool (LPCTSTR backing_store_name, this->minimum_bytes_ = options->minimum_bytes_; } - if (backing_store_name) + if (backing_store_name) { // Convert the string into a number that is used as the segment // key. - int result = ::sscanf (backing_store_name, + int result = ::sscanf (backing_store_name, "%d", &this->base_shm_key_); - if (result == 0 || result == EOF) + if (result == 0 || result == EOF) // The conversion to a number failed so hash with crc32 // ACE::crc32 is also used in . this->base_shm_key_ = (key_t) ACE::crc32 (backing_store_name); - if (this->base_shm_key_ == IPC_PRIVATE) + if (this->base_shm_key_ == IPC_PRIVATE) // Make sure that the segment can be shared between unrelated // processes. this->base_shm_key_ = ACE_DEFAULT_SHM_KEY; - } - else + } + else this->base_shm_key_ = ACE_DEFAULT_SHM_KEY; if (this->signal_handler_.register_handler (SIGSEGV, this) == -1) -- cgit v1.2.1