X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Fctmatch.c;h=7e807760618ff3548afcd991d5d27926c5fee066;hb=1a3cd3005f2a5cda8dbdaaf8f153ae5703845876;hp=4c2687b9b3cdefa113b8bf33540810971d2867c5;hpb=1571781022499a9d0c32d249f89945d034d1cbff;p=libucw.git diff --git a/lib/ctmatch.c b/lib/ctmatch.c index 4c2687b9..7e807760 100644 --- a/lib/ctmatch.c +++ b/lib/ctmatch.c @@ -1,14 +1,17 @@ /* - * Sherlock Library -- Content-Type Pattern Matching + * UCW Library -- Content-Type Pattern Matching * * (c) 1997 Martin Mares + * + * This software may be freely distributed and used according to the terms + * of the GNU Lesser General Public License. */ #include "lib/lib.h" #include "lib/chartype.h" int -match_ct_patt(byte *p, byte *t) +match_ct_patt(const char *p, const char *t) { if (*p == '*' && !p[1]) /* "*" matches everything */ return 1;