[Lldb-commits] [lldb] r301506 - One more try at the whole compiling thing...
Chris Bieneman via lldb-commits
lldb-commits at lists.llvm.org
Wed Apr 26 17:47:19 PDT 2017
Author: cbieneman
Date: Wed Apr 26 19:47:19 2017
New Revision: 301506
URL: http://llvm.org/viewvc/llvm-project?rev=301506&view=rev
Log:
One more try at the whole compiling thing...
Need to actually use the right type in both parts of the cast.
Modified:
lldb/trunk/source/Host/common/TCPSocket.cpp
Modified: lldb/trunk/source/Host/common/TCPSocket.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/common/TCPSocket.cpp?rev=301506&r1=301505&r2=301506&view=diff
==============================================================================
--- lldb/trunk/source/Host/common/TCPSocket.cpp (original)
+++ lldb/trunk/source/Host/common/TCPSocket.cpp Wed Apr 26 19:47:19 2017
@@ -191,7 +191,7 @@ Error TCPSocket::Listen(llvm::StringRef
// enable local address reuse
int option_value = 1;
set_socket_option_arg_type option_value_p =
- reinterpret_cast<get_socket_option_arg_type>(&option_value);
+ reinterpret_cast<set_socket_option_arg_type>(&option_value);
::setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, option_value_p,
sizeof(option_value));
More information about the lldb-commits
mailing list