repo: ngircd
action: commit
revision: 
path_from: 
revision_from: 00ab67dcdb96f64e8ba1951bfb88e49372576990:
path_to: 
revision_to: 
git.thebackupbox.net
ngircd
git clone git://git.thebackupbox.net/ngircd
commit 00ab67dcdb96f64e8ba1951bfb88e49372576990
Author: Alexander Barton 
Date:   Fri May 12 11:53:04 2006 +0000

    The third parameter of bind() is of type "socklen_t", not "int".

diff --git a/src/ngircd/conn.c b/src/ngircd/conn.c
index 530be7cfec8d4288919f5d6aa97a0859b42cf8f2..
index ..5e672ff3f3d86a2aefd39d6ead5369421f1a20f2 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 
@@ -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;

-----END OF PAGE-----