diff options
author | wangxianzhu@chromium.org <wangxianzhu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-11 03:31:13 +0000 |
---|---|---|
committer | wangxianzhu@chromium.org <wangxianzhu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-11 03:31:13 +0000 |
commit | d435b2a9a432a34f8218c79de68ba7cfd768c179 (patch) | |
tree | 27d09c77cd4d2b1b8fba4006f60ab7581d94f068 | |
parent | c1bff045ecb2962ffdb0f3963bb7ccacf2f2454d (diff) | |
download | chromium_src-d435b2a9a432a34f8218c79de68ba7cfd768c179.zip chromium_src-d435b2a9a432a34f8218c79de68ba7cfd768c179.tar.gz chromium_src-d435b2a9a432a34f8218c79de68ba7cfd768c179.tar.bz2 |
Fix clang build error in forwarder2/socket.cc
BUG=none
Review URL: https://chromiumcodereview.appspot.com/10917179
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@155935 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | tools/android/forwarder2/socket.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/android/forwarder2/socket.cc b/tools/android/forwarder2/socket.cc index a6abf24..7133500 100644 --- a/tools/android/forwarder2/socket.cc +++ b/tools/android/forwarder2/socket.cc @@ -115,8 +115,8 @@ bool Socket::InitSocketInternal() { bool Socket::InitUnixSocket(const std::string& path, bool abstract) { static const size_t kPathMax = sizeof(addr_.addr_un.sun_path); // For abstract sockets we need one extra byte for the leading zero. - if (abstract && path.size() + 2 /* '\0' */ > kPathMax || - !abstract && path.size() + 1 /* '\0' */ > kPathMax) { + if ((abstract && path.size() + 2 /* '\0' */ > kPathMax) || + (!abstract && path.size() + 1 /* '\0' */ > kPathMax)) { LOG(ERROR) << "The provided path is too big to create a unix " << "domain socket: " << path; return false; |