Bug 798354 - Remove the sizecheck global variable in ipc_channel_posix.cc since its only needed at compile time, and there are better ways to do this; r=cjones

This commit is contained in:
Ehsan Akhgari 2012-10-05 16:28:21 -04:00
parent 70214f9140
commit 43d123ed67

View File

@ -133,8 +133,7 @@ int ChannelNameToClientFD(const std::string& channel_id) {
}
//------------------------------------------------------------------------------
sockaddr_un sizecheck;
const size_t kMaxPipeNameLength = sizeof(sizecheck.sun_path);
const size_t kMaxPipeNameLength = sizeof(sockaddr_un::sun_path);
// Creates a Fifo with the specified name ready to listen on.
bool CreateServerFifo(const std::string& pipe_name, int* server_listen_fd) {