]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/ngircd/match.c
Remove duplicate Channel_FirstChannelOf().
[ngircd-alex.git] / src / ngircd / match.c
index ff5807723a83b24ca542e655184e6a5dc508c731..8f2fa2a60da60e2fb4a52b8a402e85c1aa7edd55 100644 (file)
@@ -14,7 +14,7 @@
 
 #include "portab.h"
 
-static char UNUSED id[] = "$Id: match.c,v 1.3 2005/03/19 18:43:49 fw Exp $";
+static char UNUSED id[] = "$Id: match.c,v 1.5 2006/10/06 21:23:47 fw Exp $";
 
 #include "imp.h"
 #include <assert.h>
@@ -32,8 +32,8 @@ static char UNUSED id[] = "$Id: match.c,v 1.3 2005/03/19 18:43:49 fw Exp $";
  */
 
 
-LOCAL int Matche PARAMS(( char *p, char *t ));
-LOCAL int Matche_After_Star PARAMS(( char *p, char *t ));
+static int Matche PARAMS(( const char *p, const char *t ));
+static int Matche_After_Star PARAMS(( const char *p, const char *t ));
 
 
 #define MATCH_PATTERN  6       /* bad pattern */
@@ -45,7 +45,7 @@ LOCAL int Matche_After_Star PARAMS(( char *p, char *t ));
 
 
 GLOBAL bool
-Match( char *Pattern, char *String )
+Match( const char *Pattern, const char *String )
 {
        /* Pattern mit String vergleichen */
        if( Matche( Pattern, String ) == MATCH_VALID ) return true;
@@ -53,8 +53,8 @@ Match( char *Pattern, char *String )
 } /* Match */
 
 
-LOCAL int
-Matche( char *p, char *t )
+static int
+Matche( const char *p, const char *t )
 {
        register char range_start, range_end;
        bool invert;
@@ -200,8 +200,8 @@ Matche( char *p, char *t )
 } /* Matche */
 
 
-LOCAL int
-Matche_After_Star( char *p, char *t )
+static int
+Matche_After_Star( const char *p, const char *t )
 {
        register int nextp, match = 0;