The whole point of strclean() is to modify the
authorFabian Keil <fk@fabiankeil.de>
Wed, 21 May 2008 20:12:11 +0000 (20:12 +0000)
committerFabian Keil <fk@fabiankeil.de>
Wed, 21 May 2008 20:12:11 +0000 (20:12 +0000)
first parameter, so don't mark it immutable,
even though the compiler lets us get away with it.

parsers.c
parsers.h

index a1f1f4f..03182df 100644 (file)
--- 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;
index bc2a6b6..b840dfe 100644 (file)
--- 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 $
  *
  * 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 */