Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/vowpal_wabbit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Langford <jl@hunch.net>2014-01-23 19:43:09 +0400
committerJohn Langford <jl@hunch.net>2014-01-23 19:43:09 +0400
commitf9a6b9bd2f40abf378481ae6ca92966dfdae2d5e (patch)
treebec1fcf318c70d61fed8955a4482bf43aadbf177 /vowpalwabbit/bs.cc
parent238040fb9f5cfd408ea97c4349e8df005481241a (diff)
parentcb8d90352a0007c8b133f535ad0f9111c7a58cee (diff)
reconcile
Diffstat (limited to 'vowpalwabbit/bs.cc')
-rw-r--r--vowpalwabbit/bs.cc6
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;
}