X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=src%2Fngircd%2Flists.c;h=94069d4a474a0e0b4ec120acf3fe5ed5e163a278;hp=4f9a8855e043510df2c10a939ca115ef6743e6da;hb=3243d9ee441e9cd4338965bac7c2ed3b49a3c2dd;hpb=fa7bb2790a1588e49d05cf3404220c3a63669514 diff --git a/src/ngircd/lists.c b/src/ngircd/lists.c index 4f9a8855..94069d4a 100644 --- a/src/ngircd/lists.c +++ b/src/ngircd/lists.c @@ -14,8 +14,6 @@ #include "portab.h" -static char UNUSED id[] = "$Id: lists.c,v 1.20 2006/12/07 17:57:20 fw Exp $"; - #include "imp.h" #include @@ -80,7 +78,7 @@ Lists_Add(struct list_head *header, const char *Mask, bool OnlyOnce ) newelem = malloc(sizeof(struct list_elem)); if( ! newelem ) { Log( LOG_EMERG, "Can't allocate memory for new Ban/Invite entry!" ); - return NULL; + return false; } strlcpy( newelem->mask, Mask, sizeof( newelem->mask )); @@ -162,8 +160,8 @@ Lists_CheckDupeMask(const struct list_head *h, const char *Mask ) } -GLOBAL char * -Lists_MakeMask( char *Pattern ) +GLOBAL const char * +Lists_MakeMask(const char *Pattern) { /* This function generats a valid IRC mask of "any" string. This * mask is only valid until the next call to Lists_MakeMask(),