Index: ipc/ipc_channel_posix.cc |
diff --git a/ipc/ipc_channel_posix.cc b/ipc/ipc_channel_posix.cc |
index e4852b4de321a0d7536e993fab5162b93dfd24ce..1c1b4e6817ad01cce9023e09cd97ae297f3feef9 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); |
Evan Martin
2010/09/22 00:03:47
Is this really the best way to accomplish this? T
Nico
2010/09/22 00:06:25
I asked on cfe-dev, and this is what The Chris Lat
|
// Creates a Fifo with the specified name ready to listen on. |
bool CreateServerFifo(const std::string& pipe_name, int* server_listen_fd) { |