summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2018-05-15 21:09:56 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2018-05-15 21:09:56 +0900
commit9bdc6eb34ca5929a1e5de8975d919f3ac9f1592a (patch)
treecbcc2f0e0adb7a8c34a3bb2cde0e2691d42b9a3a
parent6995edbf08e18e0578e58cc1ea312cd2dacdff47 (diff)
clang-format
-rw-r--r--src/File.cc2
-rw-r--r--src/WinTLSSession.cc3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/File.cc b/src/File.cc
index 834cab4b..345c31f9 100644
--- a/src/File.cc
+++ b/src/File.cc
@@ -242,7 +242,7 @@ bool File::mkdirs()
}
}
return true;
-}
+} // namespace aria2
mode_t File::mode()
{
diff --git a/src/WinTLSSession.cc b/src/WinTLSSession.cc
index faafd2f3..d54890e5 100644
--- a/src/WinTLSSession.cc
+++ b/src/WinTLSSession.cc
@@ -389,7 +389,8 @@ ssize_t WinTLSSession::writeData(const void* data, size_t len)
if (state_ != st_closing) {
A2_LOG_ERROR(fmt("WinTLS: Failed to encrypt a message! %s",
getLastErrorString().c_str()));
- } else {
+ }
+ else {
// On closing state, don't log this message in error level
// because it seems that the encryption tends to fail in that
// state.