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:
parent
e6333cafc5
commit
7d88c583cf
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user