diff options
Diffstat (limited to 'ipc/ipc_channel_posix.cc')
-rw-r--r-- | ipc/ipc_channel_posix.cc | 3 |
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) { |