From 3e11c5ca1aaba55e8111281a18be6e6a6730ba06 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Mon, 19 May 2008 16:57:20 +0000 Subject: [PATCH] Declare all members of the parsers structure immutable. --- project.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/project.h b/project.h index a8e9b065..0b503b13 100644 --- a/project.h +++ b/project.h @@ -1,7 +1,7 @@ #ifndef PROJECT_H_INCLUDED #define PROJECT_H_INCLUDED /** Version string. */ -#define PROJECT_H_VERSION "$Id: project.h,v 1.113 2008/04/10 14:41:04 fabiankeil Exp $" +#define PROJECT_H_VERSION "$Id: project.h,v 1.114 2008/04/11 16:35:39 fabiankeil Exp $" /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/project.h,v $ @@ -37,6 +37,9 @@ * * Revisions : * $Log: project.h,v $ + * Revision 1.114 2008/04/11 16:35:39 fabiankeil + * Oops, I forgot to shorten the URL_SPEC_INITIALIZER in my last commit. + * * Revision 1.113 2008/04/10 14:41:04 fabiankeil * Ditch url_spec's path member now that it's no longer used. * @@ -1410,13 +1413,13 @@ typedef jb_err (*parser_func_ptr )(struct client_state *, char **); struct parsers { /** The header prefix to match */ - char *str; + const char *str; /** The length of the prefix to match */ - size_t len; + const size_t len; /** The function to apply to this line */ - parser_func_ptr parser; + const parser_func_ptr parser; }; -- 2.39.2