summaryrefslogtreecommitdiffstats
path: root/lldb/source/Host/common/TCPSocket.cpp
diff options
context:
space:
mode:
authorChris Bieneman <beanz@apple.com>2017-04-27 00:47:19 +0000
committerChris Bieneman <beanz@apple.com>2017-04-27 00:47:19 +0000
commit26beacc19e167381334032cc25fe9fed0fda139d (patch)
treeb2d012e9a4da24b1b76d9ff8c051e4c48d4ce2c9 /lldb/source/Host/common/TCPSocket.cpp
parentc246a4c973ebc878b27a44c03e74ad74e9949e74 (diff)
downloadbcm5719-llvm-26beacc19e167381334032cc25fe9fed0fda139d.tar.gz
bcm5719-llvm-26beacc19e167381334032cc25fe9fed0fda139d.zip
One more try at the whole compiling thing...
Need to actually use the right type in both parts of the cast. llvm-svn: 301506
Diffstat (limited to 'lldb/source/Host/common/TCPSocket.cpp')
-rw-r--r--lldb/source/Host/common/TCPSocket.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Host/common/TCPSocket.cpp b/lldb/source/Host/common/TCPSocket.cpp
index 465a739115a..21830f5a52f 100644
--- a/lldb/source/Host/common/TCPSocket.cpp
+++ b/lldb/source/Host/common/TCPSocket.cpp
@@ -191,7 +191,7 @@ Error TCPSocket::Listen(llvm::StringRef name, int backlog) {
// 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));
OpenPOWER on IntegriCloud