summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--base/files/file_path_watcher_linux.cc2
-rw-r--r--base/posix/unix_domain_socket.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/base/files/file_path_watcher_linux.cc b/base/files/file_path_watcher_linux.cc
index d77b039..9e7e394 100644
--- a/base/files/file_path_watcher_linux.cc
+++ b/base/files/file_path_watcher_linux.cc
@@ -422,7 +422,7 @@ void FilePathWatcherImpl::WillDestroyCurrentMessageLoop() {
}
bool FilePathWatcherImpl::UpdateWatches() {
- // Ensure this runs on the message_loop_ exclusively in order to avoid
+ // Ensure this runs on the |message_loop_| exclusively in order to avoid
// concurrency issues.
DCHECK(message_loop()->BelongsToCurrentThread());
diff --git a/base/posix/unix_domain_socket.cc b/base/posix/unix_domain_socket.cc
index 36f4c43..da8be63 100644
--- a/base/posix/unix_domain_socket.cc
+++ b/base/posix/unix_domain_socket.cc
@@ -111,7 +111,7 @@ ssize_t UnixDomainSocket::SendRecvMsg(int fd,
// This socketpair is only used for the IPC and is cleaned up before
// returning.
if (socketpair(AF_UNIX, SOCK_DGRAM, 0, fds) == -1)
- return false;
+ return -1;
std::vector<int> fd_vector;
fd_vector.push_back(fds[1]);