X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Fwildmatch.c;h=e0b5e2ecf6fd0ef42848b6609b737a9359d46d77;hb=ed4e86de76d1c3bfb685207fe00078950f67355a;hp=fed2ddb944efd5e9c8e6141cdbeb5fbe3337be52;hpb=5ff0a5b047624c8f215da9cd6c7182d609fcbd01;p=libucw.git diff --git a/lib/wildmatch.c b/lib/wildmatch.c index fed2ddb9..e0b5e2ec 100644 --- a/lib/wildmatch.c +++ b/lib/wildmatch.c @@ -99,7 +99,7 @@ wp_new_state(struct wildpatt *w, u32 set) } struct wildpatt * -wp_compile(byte *p, struct mempool *pool) +wp_compile(const byte *p, struct mempool *pool) { struct wildpatt *w; uns i; @@ -148,7 +148,7 @@ wp_prune_cache(struct wildpatt *w) } int -wp_match(struct wildpatt *w, byte *s) +wp_match(struct wildpatt *w, const byte *s) { struct dfa_state *d; @@ -175,7 +175,7 @@ wp_match(struct wildpatt *w, byte *s) } int -wp_min_size(byte *p) +wp_min_size(const byte *p) { int s = 0;