From 6bc523c6184a9c85ca1949dfc1d6636799623528 Mon Sep 17 00:00:00 2001 From: nealsid Date: Mon, 10 May 2010 20:35:54 +0000 Subject: Changes to fix build warnings on newer versions of GCC, and a fix to not try to open certain mapped files. A=ZhurunZ, Tristan Schmelcher R=nealsid git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@593 4c0a9323-5329-0410-9bdc-e9ce6186880e --- src/client/linux/crash_generation/crash_generation_client.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/client/linux/crash_generation') diff --git a/src/client/linux/crash_generation/crash_generation_client.cc b/src/client/linux/crash_generation/crash_generation_client.cc index af02fdbd..b05ebc58 100644 --- a/src/client/linux/crash_generation/crash_generation_client.cc +++ b/src/client/linux/crash_generation/crash_generation_client.cc @@ -64,7 +64,8 @@ CrashGenerationClient::RequestDump(const void* blob, size_t blob_size) hdr->cmsg_level = SOL_SOCKET; hdr->cmsg_type = SCM_RIGHTS; hdr->cmsg_len = CMSG_LEN(sizeof(int)); - *((int*) CMSG_DATA(hdr)) = fds[1]; + int* p = reinterpret_cast(CMSG_DATA(hdr)); + *p = fds[1]; HANDLE_EINTR(sys_sendmsg(server_fd_, &msg, 0)); sys_close(fds[1]); -- cgit v1.2.1