From 420f1173d31ee9c7b97e3bfdf120a421c38fe606 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Mon, 14 Apr 2008 18:19:48 +0000 Subject: [PATCH] Remove now-pointless cast in create_url_spec(). --- urlmatch.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/urlmatch.c b/urlmatch.c index 6e84bc3c..8795f80e 100644 --- a/urlmatch.c +++ b/urlmatch.c @@ -1,4 +1,4 @@ -const char urlmatch_rcs[] = "$Id: urlmatch.c,v 1.34 2008/04/13 13:32:07 fabiankeil Exp $"; +const char urlmatch_rcs[] = "$Id: urlmatch.c,v 1.35 2008/04/14 18:11:21 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/urlmatch.c,v $ @@ -33,6 +33,11 @@ const char urlmatch_rcs[] = "$Id: urlmatch.c,v 1.34 2008/04/13 13:32:07 fabianke * * Revisions : * $Log: urlmatch.c,v $ + * Revision 1.35 2008/04/14 18:11:21 fabiankeil + * The compiler might not notice it, but the buffer passed to + * create_url_spec() is modified later on and thus shouldn't + * be declared immutable. + * * Revision 1.34 2008/04/13 13:32:07 fabiankeil * Factor URL pattern compilation out of create_url_spec(). * @@ -1104,7 +1109,7 @@ jb_err create_url_spec(struct url_spec *url, char *buf) } /* If it isn't a tag pattern it must be a URL pattern. */ - return compile_url_pattern(url, (char *)buf); + return compile_url_pattern(url, buf); } -- 2.39.2