From: Frederic Bouvier Date: Fri, 12 Nov 2010 21:03:11 +0000 (+0100) Subject: Fix setsockopt call X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6b58afe8234155e8c6e5bf3d4a43dbd5d0ab9ba7;p=simgear.git Fix setsockopt call --- diff --git a/simgear/io/raw_socket.cxx b/simgear/io/raw_socket.cxx index 75184bbd..54b1177c 100644 --- a/simgear/io/raw_socket.cxx +++ b/simgear/io/raw_socket.cxx @@ -200,7 +200,7 @@ bool Socket::open ( bool stream ) if ( stream ) { int opt_boolean = 1; setsockopt( handle, SOL_SOCKET, SO_REUSEADDR, - &opt_boolean, sizeof(opt_boolean) ); + (char *)&opt_boolean, sizeof(opt_boolean) ); } return (handle != -1);