Changeset 21052

Show
Ignore:
Timestamp:
02/23/08 13:16:06 (9 months ago)
Author:
patrick
Message:

Use C++ casts instead of C-style casts.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • juggler/trunk/modules/vapor/vpr/md/POSIX/Sync/SemaphorePosix.cpp

    r21051 r21052  
    6969   mSema = sem_open(mSemaFile, O_CREAT, S_IRUSR | S_IWUSR, initialValue); 
    7070 
    71    if ( mSema == (sem_t*) SEM_FAILED
     71   if ( mSema == reinterpret_cast<sem_t*>(SEM_FAILED)
    7272   { 
    7373      std::ostringstream msg_stream; 
     
    7878#else 
    7979   // ----- Allocate the unnamed semaphore ----- // 
    80    mSema = (sem_t*) std::malloc(sizeof(sem_t)); 
     80   mSema = reinterpret_cast<sem_t*>(std::malloc(sizeof(sem_t))); 
    8181 
    8282   if ( NULL == mSema ) 
     
    132132   mSema = sem_open(mSemaFile, O_CREAT, 0600, val); 
    133133 
    134    if ( mSema == (sem_t*) SEM_FAILED
     134   if ( mSema == reinterpret_cast<sem_t*>(SEM_FAILED)
    135135   { 
    136136      std::ostringstream msg_stream;