Change type of optval from long to int for invocation of setsockopt with
authorAdam Dickmeiss <adam@indexdata.dk>
Thu, 21 Sep 2006 15:55:25 +0000 (15:55 +0000)
committerAdam Dickmeiss <adam@indexdata.dk>
Thu, 21 Sep 2006 15:55:25 +0000 (15:55 +0000)
the SO_REUSEADDR option.

src/tcpip.c

index 45b2ad1..a16fe5e 100644 (file)
@@ -2,7 +2,7 @@
  * Copyright (C) 1995-2006, Index Data ApS
  * See the file LICENSE for details.
  *
  * Copyright (C) 1995-2006, Index Data ApS
  * See the file LICENSE for details.
  *
- * $Id: tcpip.c,v 1.30 2006-09-15 09:06:28 adam Exp $
+ * $Id: tcpip.c,v 1.31 2006-09-21 15:55:25 adam Exp $
  */
 /**
  * \file tcpip.c
  */
 /**
  * \file tcpip.c
@@ -565,7 +565,7 @@ static int tcpip_bind(COMSTACK h, void *address, int mode)
 #ifdef WIN32
     BOOL one = 1;
 #else
 #ifdef WIN32
     BOOL one = 1;
 #else
-    unsigned long one = 1;
+    int one = 1;
 #endif
 
 #if HAVE_GETADDRINFO
 #endif
 
 #if HAVE_GETADDRINFO