Changeset 21052
- Timestamp:
- 02/23/08 13:16:06 (9 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
juggler/trunk/modules/vapor/vpr/md/POSIX/Sync/SemaphorePosix.cpp
r21051 r21052 69 69 mSema = sem_open(mSemaFile, O_CREAT, S_IRUSR | S_IWUSR, initialValue); 70 70 71 if ( mSema == (sem_t*) SEM_FAILED)71 if ( mSema == reinterpret_cast<sem_t*>(SEM_FAILED) ) 72 72 { 73 73 std::ostringstream msg_stream; … … 78 78 #else 79 79 // ----- Allocate the unnamed semaphore ----- // 80 mSema = (sem_t*) std::malloc(sizeof(sem_t));80 mSema = reinterpret_cast<sem_t*>(std::malloc(sizeof(sem_t))); 81 81 82 82 if ( NULL == mSema ) … … 132 132 mSema = sem_open(mSemaFile, O_CREAT, 0600, val); 133 133 134 if ( mSema == (sem_t*) SEM_FAILED)134 if ( mSema == reinterpret_cast<sem_t*>(SEM_FAILED) ) 135 135 { 136 136 std::ostringstream msg_stream;
