Changeset 2650

Show
Ignore:
Timestamp:
02/03/2010 08:25:50 (6 months ago)
Author:
chris
Message:

Undo

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • box/trunk/lib/common/Test.cpp

    r2649 r2650  
    4444 
    4545// -1 if doesn't exist 
    46 int TestGetFileSize(const std::string& rFilename) 
     46int TestGetFileSize(const char *Filename) 
    4747{ 
    4848        EMU_STRUCT_STAT st; 
    49         if(EMU_STAT(rFilename.c_str(), &st) == 0) 
     49        if(EMU_STAT(Filename, &st) == 0) 
    5050        { 
    5151                return st.st_size; 
     
    463463        while (nanosleep(&ts, &ts) == -1 && errno == EINTR) 
    464464        { 
    465                 // FIXME evil hack for OSX, where ts.tv_sec contains 
     465                // FIME evil hack for OSX, where ts.tv_sec contains 
    466466                // a negative number interpreted as unsigned 32-bit 
    467467                // when nanosleep() returns later than expected.