diff options
author | Yaron Keren <yaron.keren@gmail.com> | 2014-09-26 22:27:11 +0000 |
---|---|---|
committer | Yaron Keren <yaron.keren@gmail.com> | 2014-09-26 22:27:11 +0000 |
commit | abce3c4e180f0923f973e28f20cb9d7782d09546 (patch) | |
tree | a41b3f8a45e2ad42ac64d1c9dd9035e4ea7784a5 /llvm/lib/Support/Windows/Program.inc | |
parent | 8597488e5e32479977fe6bf9a306830d6ca8be45 (diff) | |
download | bcm5719-llvm-abce3c4e180f0923f973e28f20cb9d7782d09546.tar.gz bcm5719-llvm-abce3c4e180f0923f973e28f20cb9d7782d09546.zip |
clang-format of ChangeStdinToBinary & ChangeStdoutToBinary.
llvm-svn: 218547
Diffstat (limited to 'llvm/lib/Support/Windows/Program.inc')
-rw-r--r-- | llvm/lib/Support/Windows/Program.inc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Support/Windows/Program.inc b/llvm/lib/Support/Windows/Program.inc index affaf03eb61..995c9fedb96 100644 --- a/llvm/lib/Support/Windows/Program.inc +++ b/llvm/lib/Support/Windows/Program.inc @@ -428,15 +428,15 @@ ProcessInfo sys::Wait(const ProcessInfo &PI, unsigned SecondsToWait, return WaitResult; } - std::error_code sys::ChangeStdinToBinary(){ - int result = _setmode( _fileno(stdin), _O_BINARY ); +std::error_code sys::ChangeStdinToBinary() { + int result = _setmode(_fileno(stdin), _O_BINARY); if (result == -1) return std::error_code(errno, std::generic_category()); return std::error_code(); } - std::error_code sys::ChangeStdoutToBinary(){ - int result = _setmode( _fileno(stdout), _O_BINARY ); +std::error_code sys::ChangeStdoutToBinary() { + int result = _setmode(_fileno(stdout), _O_BINARY); if (result == -1) return std::error_code(errno, std::generic_category()); return std::error_code(); |