]> arthur.barton.de Git - ngircd-alex.git/commitdiff
Constify Lists_MakeMask argument and return type.
authorFlorian Westphal <fw@strlen.de>
Sat, 19 Apr 2008 12:11:25 +0000 (14:11 +0200)
committerFlorian Westphal <fw@strlen.de>
Sat, 19 Apr 2008 12:11:25 +0000 (14:11 +0200)
src/ngircd/lists.c
src/ngircd/lists.h

index 6a70d088db5fcb40c05c57597c02ad41299a76bb..94069d4a474a0e0b4ec120acf3fe5ed5e163a278 100644 (file)
@@ -14,8 +14,6 @@
 
 #include "portab.h"
 
-static char UNUSED id[] = "$Id: lists.c,v 1.21 2007/01/29 21:13:26 fw Exp $";
-
 #include "imp.h"
 #include <assert.h>
 
@@ -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(),
index 420f7751431996823bc119bcd8179afd76f4070d..6458e7825377e2f55e9cedde0f423687d9d27081 100644 (file)
@@ -8,8 +8,6 @@
  * (at your option) any later version.
  * Please read the file COPYING, README and AUTHORS for more information.
  *
- * $Id: lists.h,v 1.13 2006/12/07 17:57:20 fw Exp $
- *
  * Management of IRC lists: ban, invite, ... (header)
  */
 
@@ -39,7 +37,7 @@ GLOBAL bool Lists_AlreadyRegistered PARAMS(( const struct list_head *head, const
 
 GLOBAL void Lists_Free PARAMS(( struct list_head *head ));
 
-GLOBAL char *Lists_MakeMask PARAMS(( char *Pattern ));
+GLOBAL const char *Lists_MakeMask PARAMS((const char *Pattern));
 GLOBAL const char *Lists_GetMask PARAMS(( const struct list_elem *e ));
 
 #endif