Backout changeset 9adf5ca922a4 (bug 798354) because it relied on the assumption that C++98 is a sane language and allows sizeof(class::member), but that sanity has just been added to C++11

This commit is contained in:
Ehsan Akhgari 2012-10-09 17:27:05 -04:00
parent f83771e39e
commit 75031cebf9

View File

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