X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fngircd%2Fconn.c;h=4a028ac7794b0fc7eeb9be7c825c0d94e506ff97;hb=7dba1a0766b35d01cd8892753d1e0dd578ca2cd9;hp=6b3b51eaf5c10dc6b8555d8a99b53dee3b178a79;hpb=5545e1bebf31ddb9f89c80979c0be93e3fdf6f0c;p=ngircd-alex.git diff --git a/src/ngircd/conn.c b/src/ngircd/conn.c index 6b3b51ea..4a028ac7 100644 --- a/src/ngircd/conn.c +++ b/src/ngircd/conn.c @@ -328,7 +328,7 @@ Conn_Init( void ) array_bytes(&My_ConnArray)); assert(array_length(&My_ConnArray, sizeof(CONNECTION)) >= (size_t)Pool_Size); - + array_free( &My_Listeners ); for (i = 0; i < Pool_Size; i++) @@ -796,7 +796,7 @@ Conn_Handler(void) GLOBAL bool Conn_WriteStr(CONN_ID Idx, const char *Format, ...) #else -GLOBAL bool +GLOBAL bool Conn_WriteStr(Idx, Format, va_alist) CONN_ID Idx; const char *Format; @@ -829,7 +829,7 @@ va_dcl * IRC_WriteXXX() functions when the prefix of this server had * to be added to an already "quite long" command line which * has been received from a regular IRC client, for example. - * + * * We are not allowed to send such "oversized" messages to * other servers and clients, see RFC 2812 2.3 and 2813 3.3 * ("these messages SHALL NOT exceed 512 characters in length, @@ -1583,7 +1583,7 @@ Read_Request( CONN_ID Idx ) if (len == 0) { LogDebug("Client \"%s:%u\" is closing connection %d ...", My_Connections[Idx].host, - ng_ipaddr_tostr(&My_Connections[Idx].addr), Idx); + ng_ipaddr_getport(&My_Connections[Idx].addr), Idx); Conn_Close(Idx, NULL, "Client closed connection", false); return; } @@ -2364,7 +2364,7 @@ Simple_Message(int Sock, const char *Msg) * @returns Pointer to CLIENT structure. */ GLOBAL CLIENT * -Conn_GetClient( CONN_ID Idx ) +Conn_GetClient( CONN_ID Idx ) { CONNECTION *c;