One more try at the whole compiling thing...

Need to actually use the right type in both parts of the cast.

llvm-svn: 301506
This commit is contained in:
Chris Bieneman 2017-04-27 00:47:19 +00:00
parent c246a4c973
commit 26beacc19e
1 changed files with 1 additions and 1 deletions

View File

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