commit 2434e86e14ca8ea0067358e83089dcb75a655b07 from: Florian Westphal date: Sat Dec 02 13:01:11 2006 UTC char *foo -> const char *foo [from HEAD] commit - 2b4b416d2f034214c11cbd36d9529cf9e4c31ace commit + 2434e86e14ca8ea0067358e83089dcb75a655b07 blob - 2748a3e4569e3fa5631ba82060a76afa6921f718 blob + 2ce36723b12527a8fd2c6244a13f572e1c3885ac --- src/ngircd/match.c +++ src/ngircd/match.c @@ -14,7 +14,7 @@ #include "portab.h" -static char UNUSED id[] = "$Id: match.c,v 1.4 2005/07/31 20:13:08 alex Exp $"; +static char UNUSED id[] = "$Id: match.c,v 1.4.2.1 2006/12/02 13:01:11 fw Exp $"; #include "imp.h" #include @@ -32,8 +32,8 @@ static char UNUSED id[] = "$Id: match.c,v 1.4 2005/07/ */ -static int Matche PARAMS(( char *p, char *t )); -static 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 @@ static 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; @@ -54,7 +54,7 @@ Match( char *Pattern, char *String ) static int -Matche( char *p, char *t ) +Matche( const char *p, const char *t ) { register char range_start, range_end; bool invert; @@ -201,7 +201,7 @@ Matche( char *p, char *t ) static int -Matche_After_Star( char *p, char *t ) +Matche_After_Star( const char *p, const char *t ) { register int nextp, match = 0; blob - ddd64835340d9fa0d76d9cea70b5e36542a1da5b blob + 920699310047cfe85c883c420d301cd8e88e3dda --- src/ngircd/match.h +++ src/ngircd/match.h @@ -8,7 +8,7 @@ * (at your option) any later version. * Please read the file COPYING, README and AUTHORS for more information. * - * $Id: match.h,v 1.3 2005/03/19 18:43:49 fw Exp $ + * $Id: match.h,v 1.3.4.1 2006/12/02 13:01:11 fw Exp $ * * Wildcard pattern matching (header) */ @@ -18,7 +18,7 @@ #define __match_h__ -GLOBAL bool Match PARAMS(( char *Pattern, char *String )); +GLOBAL bool Match PARAMS(( const char *Pattern, const char *String )); #endif