Bug 831279 - Part 1: 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, a=overholt

This commit is contained in:
Ehsan Akhgari 2013-01-16 17:46:29 -05:00
Родитель a8fbc11200
Коммит 000512c4fc
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -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) {