]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/ngircd/lists.c
Fixed some warnings of non-gcc-compilers (e. g. original Apple compiler on
[ngircd-alex.git] / src / ngircd / lists.c
index f6e710c687927f16a49bbfc1c9789c6a3cfd1a08..a9d476753aeac68fb07e7ebbe62567271efa00cd 100644 (file)
@@ -14,7 +14,7 @@
 
 #include "portab.h"
 
-static char UNUSED id[] = "$Id: lists.c,v 1.11 2002/12/26 16:25:43 alex Exp $";
+static char UNUSED id[] = "$Id: lists.c,v 1.13 2004/03/11 22:16:31 alex Exp $";
 
 #include "imp.h"
 #include <assert.h>
@@ -30,6 +30,7 @@ static char UNUSED id[] = "$Id: lists.c,v 1.11 2002/12/26 16:25:43 alex Exp $";
 
 #include <stdlib.h>
 #include <string.h>
+#include <strings.h>
 
 #include "exp.h"
 #include "lists.h"
@@ -370,7 +371,7 @@ New_C2C( CHAR *Mask, CHANNEL *Chan, BOOLEAN OnlyOnce )
        assert( Chan != NULL );
 
        /* Speicher fuer Eintrag anfordern */
-       c2c = malloc( sizeof( C2C ));
+       c2c = (C2C *)malloc( sizeof( C2C ));
        if( ! c2c )
        {
                Log( LOG_EMERG, "Can't allocate memory! [New_C2C]" );