From 9372cc4027f9782f83b516d52a56457598119f99 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Wed, 21 May 2008 20:12:11 +0000 Subject: [PATCH] The whole point of strclean() is to modify the first parameter, so don't mark it immutable, even though the compiler lets us get away with it. --- parsers.c | 7 +++++-- parsers.h | 8 ++++++-- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/parsers.c b/parsers.c index a1f1f4f2..03182df5 100644 --- a/parsers.c +++ b/parsers.c @@ -1,4 +1,4 @@ -const char parsers_rcs[] = "$Id: parsers.c,v 1.133 2008/05/21 15:50:47 fabiankeil Exp $"; +const char parsers_rcs[] = "$Id: parsers.c,v 1.134 2008/05/21 19:27:25 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/parsers.c,v $ @@ -44,6 +44,9 @@ const char parsers_rcs[] = "$Id: parsers.c,v 1.133 2008/05/21 15:50:47 fabiankei * * Revisions : * $Log: parsers.c,v $ + * Revision 1.134 2008/05/21 19:27:25 fabiankeil + * As the wafer actions are gone, we can stop including encode.h. + * * Revision 1.133 2008/05/21 15:50:47 fabiankeil * Ditch cast from (char **) to (char **). * @@ -4151,7 +4154,7 @@ static jb_err server_set_cookie(struct client_state *csp, char **header) * Returns : Number of eliminations * *********************************************************************/ -int strclean(const char *string, const char *substring) +int strclean(char *string, const char *substring) { int hits = 0; size_t len; diff --git a/parsers.h b/parsers.h index bc2a6b60..b840dfe1 100644 --- a/parsers.h +++ b/parsers.h @@ -1,6 +1,6 @@ #ifndef PARSERS_H_INCLUDED #define PARSERS_H_INCLUDED -#define PARSERS_H_VERSION "$Id: parsers.h,v 1.45 2008/05/20 20:13:30 fabiankeil Exp $" +#define PARSERS_H_VERSION "$Id: parsers.h,v 1.46 2008/05/21 15:47:14 fabiankeil Exp $" /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/parsers.h,v $ @@ -43,6 +43,10 @@ * * Revisions : * $Log: parsers.h,v $ + * Revision 1.46 2008/05/21 15:47:14 fabiankeil + * Streamline sed()'s prototype and declare + * the header parse and add structures static. + * * Revision 1.45 2008/05/20 20:13:30 fabiankeil * Factor update_server_headers() out of sed(), ditch the * first_run hack and make server_patterns_light static. @@ -288,7 +292,7 @@ extern void get_http_time(int time_offset, char *buf, size_t buffer_size); extern jb_err get_destination_from_headers(const struct list *headers, struct http_request *http); #ifdef FEATURE_FORCE_LOAD -extern int strclean(const char *string, const char *substring); +extern int strclean(char *string, const char *substring); #endif /* def FEATURE_FORCE_LOAD */ /* Revision control strings from this header and associated .c file */ -- 2.39.2