[libFuzzer][Windows] Clean up RawPrint
authorJonathan Metzman <metzman@chromium.org>
Mon, 4 Feb 2019 23:01:06 +0000 (23:01 +0000)
committerJonathan Metzman <metzman@chromium.org>
Mon, 4 Feb 2019 23:01:06 +0000 (23:01 +0000)
Summary:
Use `_write` instead of the deprecated alias `write` on Windows.
Also, remove comment saying RawPrint is untested on Windows.

Reviewers: vitalybuka

Reviewed By: vitalybuka

Subscribers: vitalybuka

Differential Revision: https://reviews.llvm.org/D57589

llvm-svn: 353108

compiler-rt/lib/fuzzer/FuzzerIOWindows.cpp

index 79dacd9..e45c137 100644 (file)
@@ -333,8 +333,7 @@ bool IsInterestingCoverageFile(const std::string &FileName) {
 }
 
 void RawPrint(const char *Str) {
-  // Not tested, may or may not work. Fix if needed.
-  write(2, Str, strlen(Str));
+  _write(2, Str, strlen(Str));
 }
 
 }  // namespace fuzzer