]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/ngircd/channel.c
Added some missing words: "address" :-)
[ngircd-alex.git] / src / ngircd / channel.c
index 3c740ff0d406b94e9fe438fbb93d900157eec941..c5dde86a99fb3117e1208c9a0a3e5760f826fd5f 100644 (file)
 
 #include "portab.h"
 
-static char UNUSED id[] = "$Id: channel.c,v 1.43 2003/11/06 01:07:44 alex Exp $";
+static char UNUSED id[] = "$Id: channel.c,v 1.45 2004/03/11 22:16:31 alex Exp $";
 
 #include "imp.h"
 #include <assert.h>
 #include <stdlib.h>
 #include <string.h>
+#include <strings.h>
 
 #include "conn-func.h"
 #include "client.h"
@@ -707,7 +708,7 @@ Channel_Create( CHAR *Name )
 
        assert( Name != NULL );
        
-       c = malloc( sizeof( CHANNEL ));
+       c = (CHANNEL *)malloc( sizeof( CHANNEL ));
        if( ! c )
        {
                Log( LOG_EMERG, "Can't allocate memory! [New_Chan]" );
@@ -759,7 +760,7 @@ Add_Client( CHANNEL *Chan, CLIENT *Client )
        assert( Client != NULL );
 
        /* neue CL2CHAN-Struktur anlegen */
-       cl2chan = malloc( sizeof( CL2CHAN ));
+       cl2chan = (CL2CHAN *)malloc( sizeof( CL2CHAN ));
        if( ! cl2chan )
        {
                Log( LOG_EMERG, "Can't allocate memory! [Add_Client]" );