]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
changed matchpattern to take a const char *
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 25 May 2006 07:39:44 +0000 (07:39 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 25 May 2006 07:39:44 +0000 (07:39 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6384 d7cf8633-e32d-0410-b094-e92efae38249

common.h
filematch.c

index ac7e6cbc0d19fdf24e15b034a3da1c1e719688fd..cfff75b3400bdfd98a5728d3823be24cf4d89103 100644 (file)
--- a/common.h
+++ b/common.h
@@ -278,7 +278,7 @@ typedef struct stringlist_s
        char *text;
 } stringlist_t;
 
-int matchpattern(char *in, char *pattern, int caseinsensitive);
+int matchpattern(const char *in, const char *pattern, int caseinsensitive);
 stringlist_t *stringlistappend(stringlist_t *current, char *text);
 void stringlistfree(stringlist_t *current);
 stringlist_t *stringlistsort(stringlist_t *start);
index ca0969ce9eff01131e2b678077ead274e1f5b669..f6d85790d0d5baffe90f7f2f5c5c1eab68708281 100644 (file)
@@ -3,7 +3,7 @@
 
 // LordHavoc: some portable directory listing code I wrote for lmp2pcx, now used in darkplaces to load id1/*.pak and such...
 
-int matchpattern(char *in, char *pattern, int caseinsensitive)
+int matchpattern(const char *in, const char *pattern, int caseinsensitive)
 {
        int c1, c2;
        while (*pattern)