diff options
| author | Florian Westphal <fw@strlen.de> | 2008-04-19 14:11:25 +0200 |
|---|---|---|
| committer | Florian Westphal <fw@strlen.de> | 2008-04-19 14:11:25 +0200 |
| commit | b36fc3b095b2038e6339a8d1fd103e09916783c7 (patch) | |
| tree | dce07b048ccafe5b67fa9a0ac82c3f7070e7ead2 | |
| parent | 2dd51a98e4a32e5e0e2c860972ff863420836379 (diff) | |
| download | ngircd-b36fc3b095b2038e6339a8d1fd103e09916783c7.tar.gz ngircd-b36fc3b095b2038e6339a8d1fd103e09916783c7.zip | |
Constify Lists_MakeMask argument and return type.
| -rw-r--r-- | src/ngircd/lists.c | 6 | ||||
| -rw-r--r-- | src/ngircd/lists.h | 4 |
2 files changed, 3 insertions, 7 deletions
diff --git a/src/ngircd/lists.c b/src/ngircd/lists.c index 6a70d088..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.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(), diff --git a/src/ngircd/lists.h b/src/ngircd/lists.h index 420f7751..6458e782 100644 --- a/src/ngircd/lists.h +++ b/src/ngircd/lists.h @@ -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 |