diff options
author | Chris Wilson <chris+github@qwirx.com> | 2010-03-02 08:25:50 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2010-03-02 08:25:50 +0000 |
commit | 08cc80e58991acb84326228bcffa49619f7444f2 (patch) | |
tree | 834189e4d17d9e9aed1573219a55e30d192c52df /lib/common/Test.cpp | |
parent | 806122d1b5664a50b4d2273c04e004c2d38f8898 (diff) |
Undo
Diffstat (limited to 'lib/common/Test.cpp')
-rw-r--r-- | lib/common/Test.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/common/Test.cpp b/lib/common/Test.cpp index 50818839..b1cbb5a9 100644 --- a/lib/common/Test.cpp +++ b/lib/common/Test.cpp @@ -43,10 +43,10 @@ bool TestDirExists(const char *Filename) } // -1 if doesn't exist -int TestGetFileSize(const std::string& rFilename) +int TestGetFileSize(const char *Filename) { EMU_STRUCT_STAT st; - if(EMU_STAT(rFilename.c_str(), &st) == 0) + if(EMU_STAT(Filename, &st) == 0) { return st.st_size; } @@ -462,7 +462,7 @@ void safe_sleep(int seconds) ts.tv_nsec = 0; while (nanosleep(&ts, &ts) == -1 && errno == EINTR) { - // FIXME evil hack for OSX, where ts.tv_sec contains + // FIME evil hack for OSX, where ts.tv_sec contains // a negative number interpreted as unsigned 32-bit // when nanosleep() returns later than expected. |