0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

fix warning on *nix

This commit is contained in:
Eliot Horowitz 2009-09-16 15:42:42 -04:00
parent e6333cafc5
commit 7d88c583cf

View File

@ -122,9 +122,9 @@ namespace mongo {
#if defined(_WIN32)
(std::cout << now << " " << s).flush();
#else
write( STDOUT_FILENO, now, 20 );
write( STDOUT_FILENO, " ", 1 );
write( STDOUT_FILENO, s.c_str(), s.length() );
assert( write( STDOUT_FILENO, now, 20 ) > 0 );
assert( write( STDOUT_FILENO, " ", 1 ) > 0 );
assert( write( STDOUT_FILENO, s.c_str(), s.length() ) > 0 );
fsync( STDOUT_FILENO );
#endif
}