summaryrefslogtreecommitdiffstats
path: root/ipc
diff options
context:
space:
mode:
authorthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-22 00:09:28 +0000
committerthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-22 00:09:28 +0000
commit6673317aabd12e4575027ed300d006f9e2bc3824 (patch)
treea8d889c3d1e3590d98e731dc55ba8963ff1f335e /ipc
parent1804aa715fd72666c7c22d2cf6a773ecbd6eb43d (diff)
downloadchromium_src-6673317aabd12e4575027ed300d006f9e2bc3824.zip
chromium_src-6673317aabd12e4575027ed300d006f9e2bc3824.tar.gz
chromium_src-6673317aabd12e4575027ed300d006f9e2bc3824.tar.bz2
Mac: clang build
Fixes the last few warnings / errors necessary to build chrome/mac with clang. See http://code.google.com/p/chromium/wiki/Clang BUG=none TEST=none Review URL: http://codereview.chromium.org/2762014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60131 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ipc')
-rw-r--r--ipc/ipc_channel_posix.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/ipc/ipc_channel_posix.cc b/ipc/ipc_channel_posix.cc
index e4852b4..1c1b4e6 100644
--- a/ipc/ipc_channel_posix.cc
+++ b/ipc/ipc_channel_posix.cc
@@ -135,8 +135,7 @@ int ChannelNameToFD(const std::string& channel_id) {
}
//------------------------------------------------------------------------------
-sockaddr_un sizecheck;
-const size_t kMaxPipeNameLength = sizeof(sizecheck.sun_path);
+const size_t kMaxPipeNameLength = sizeof(((sockaddr_un*)0)->sun_path);
// Creates a Fifo with the specified name ready to listen on.
bool CreateServerFifo(const std::string& pipe_name, int* server_listen_fd) {