diff options
author | John Langford <jl@hunch.net> | 2014-01-23 19:43:09 +0400 |
---|---|---|
committer | John Langford <jl@hunch.net> | 2014-01-23 19:43:09 +0400 |
commit | f9a6b9bd2f40abf378481ae6ca92966dfdae2d5e (patch) | |
tree | bec1fcf318c70d61fed8955a4482bf43aadbf177 /vowpalwabbit/bs.cc | |
parent | 238040fb9f5cfd408ea97c4349e8df005481241a (diff) | |
parent | cb8d90352a0007c8b133f535ad0f9111c7a58cee (diff) |
reconcile
Diffstat (limited to 'vowpalwabbit/bs.cc')
-rw-r--r-- | vowpalwabbit/bs.cc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/vowpalwabbit/bs.cc b/vowpalwabbit/bs.cc index aabe326a..035a5e28 100644 --- a/vowpalwabbit/bs.cc +++ b/vowpalwabbit/bs.cc @@ -121,11 +121,7 @@ namespace BS { ss << temp; ss << '\n'; ssize_t len = ss.str().size(); -#ifdef _WIN32 - ssize_t t = _write(f, ss.str().c_str(), (unsigned int)len); -#else - ssize_t t = write(f, ss.str().c_str(), (unsigned int)len); -#endif + ssize_t t = io_buf::write_file_or_socket(f, ss.str().c_str(), (unsigned int)len); if (t != len) cerr << "write error" << endl; } |