Fix pointer-mismatch bug.
authorChris Hanson <org/chris-hanson/cph>
Sat, 12 Jul 2003 03:39:29 +0000 (03:39 +0000)
committerChris Hanson <org/chris-hanson/cph>
Sat, 12 Jul 2003 03:39:29 +0000 (03:39 +0000)
v7/src/microcode/ntsock.c

index b64740dc903f9e72cad253de606e13af118367f3..a24e2b9c31f95a7a331d5d0ce68d1b96ae64fc77 100644 (file)
@@ -1,6 +1,6 @@
 /* -*-C-*-
 
-$Id: ntsock.c,v 1.17 2003/07/12 03:15:47 cph Exp $
+$Id: ntsock.c,v 1.18 2003/07/12 03:39:29 cph Exp $
 
 Copyright 1997,1998,1999,2001,2002,2003 Massachusetts Institute of Technology
 
@@ -212,7 +212,7 @@ OS_bind_tcp_server_socket (Tchannel channel, void * host, unsigned int port)
     (setsockopt, ((CHANNEL_SOCKET (channel)),
                  SOL_SOCKET,
                  SO_REUSEADDR,
-                 (&one),
+                 ((void *) (&one)),
                  (sizeof (one))));
   VOID_SOCKET_CALL
     (bind, ((CHANNEL_SOCKET (channel)),