diff options
author | jrg@chromium.org <jrg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-25 23:53:06 +0000 |
---|---|---|
committer | jrg@chromium.org <jrg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-25 23:53:06 +0000 |
commit | 113070235779bb83ef8779cdc4b392eddccf3b5a (patch) | |
tree | 47ea29cd2dfc2e3b338725e78cfcb7f77675c102 /ipc | |
parent | fa0f954c53715a5401ac01f3d87990df2bf88479 (diff) | |
download | chromium_src-113070235779bb83ef8779cdc4b392eddccf3b5a.zip chromium_src-113070235779bb83ef8779cdc4b392eddccf3b5a.tar.gz chromium_src-113070235779bb83ef8779cdc4b392eddccf3b5a.tar.bz2 |
Fix warning so Android ipc_tests builds again. (-Werror turned on in http://codereview.chromium.org/9288008)
BUG=None
TEST=
Review URL: http://codereview.chromium.org/9288030
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119144 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ipc')
-rw-r--r-- | ipc/ipc_channel_posix.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ipc/ipc_channel_posix.cc b/ipc/ipc_channel_posix.cc index d44c008..069869f 100644 --- a/ipc/ipc_channel_posix.cc +++ b/ipc/ipc_channel_posix.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -968,7 +968,7 @@ bool Channel::ChannelImpl::GetClientEuid(uid_t* client_euid) const { PLOG(ERROR) << "getsockopt " << pipe_; return false; } - if (cred_len < sizeof(cred)) { + if (static_cast<unsigned>(cred_len) < sizeof(cred)) { NOTREACHED() << "Truncated ucred from SO_PEERCRED?"; return false; } |