about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2006-05-12 11:53:04 +0000
committerAlexander Barton <alex@barton.de>2006-05-12 11:53:04 +0000
commit00ab67dcdb96f64e8ba1951bfb88e49372576990 (patch)
tree4e808f6fb8650a663a53bc6c2ab52ba7d1e9b7f3 /src
parentdd3a3bc6039bc1fd1a89ffb834f08665c8035b6a (diff)
downloadngircd-00ab67dcdb96f64e8ba1951bfb88e49372576990.tar.gz
ngircd-00ab67dcdb96f64e8ba1951bfb88e49372576990.zip
The third parameter of bind() is of type "socklen_t", not "int".
Diffstat (limited to 'src')
-rw-r--r--src/ngircd/conn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ngircd/conn.c b/src/ngircd/conn.c
index 530be7cf..5e672ff3 100644
--- a/src/ngircd/conn.c
+++ b/src/ngircd/conn.c
@@ -17,7 +17,7 @@
 #include "portab.h"
 #include "io.h"
 
-static char UNUSED id[] = "$Id: conn.c,v 1.195 2006/05/10 21:24:01 alex Exp $";
+static char UNUSED id[] = "$Id: conn.c,v 1.196 2006/05/12 11:53:04 alex Exp $";
 
 #include "imp.h"
 #include <assert.h>
@@ -383,7 +383,7 @@ NewListener( const UINT16 Port )
 
 	if( ! Init_Socket( sock )) return -1;
 
-	if (bind(sock, (struct sockaddr *)&addr, (int)sizeof(addr)) != 0) {
+	if (bind(sock, (struct sockaddr *)&addr, (socklen_t)sizeof(addr)) != 0) {
 		Log( LOG_CRIT, "Can't bind socket: %s!", strerror( errno ));
 		close( sock );
 		return -1;