]> git.mxchange.org Git - simgear.git/commitdiff
Fix setsockopt call
authorFrederic Bouvier <fredfgfs01@free.fr>
Fri, 12 Nov 2010 21:03:11 +0000 (22:03 +0100)
committerFrederic Bouvier <fredfgfs01@free.fr>
Fri, 12 Nov 2010 21:03:11 +0000 (22:03 +0100)
simgear/io/raw_socket.cxx

index 75184bbd6abc63aa934a7fef68fd609f361a9903..54b1177c2a74b8dbc7668cf29df7bf61bf29759c 100644 (file)
@@ -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);