httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n.@apache.org
Subject cvs commit: httpd-2.0/modules/metadata mod_setenvif.c
Date Wed, 12 Feb 2003 18:00:20 GMT
nd          2003/02/12 10:00:20

  Modified:    modules/metadata Tag: APACHE_2_0_BRANCH mod_setenvif.c
  Log:
  style issues. no code changes.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.38.2.3  +16 -11    httpd-2.0/modules/metadata/mod_setenvif.c
  
  Index: mod_setenvif.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/metadata/mod_setenvif.c,v
  retrieving revision 1.38.2.2
  retrieving revision 1.38.2.3
  diff -u -r1.38.2.2 -r1.38.2.3
  --- mod_setenvif.c	3 Feb 2003 17:31:47 -0000	1.38.2.2
  +++ mod_setenvif.c	12 Feb 2003 18:00:20 -0000	1.38.2.3
  @@ -385,8 +385,9 @@
           else {
               new->special_type = SPECIAL_NOT;
               /* Handle fname as a regular expression.
  -             * If fname a simple header string, identify as such (new->pnamereg = NULL)
  -             * to avoid the overhead of searching through headers_in for a regex match.
  +             * If fname a simple header string, identify as such
  +             * (new->pnamereg = NULL) to avoid the overhead of searching
  +             * through headers_in for a regex match.
                */
               if (is_header_regex(cmd->pool, fname)) {
                   new->pnamereg = ap_pregcomp(cmd->pool, fname,
  @@ -394,7 +395,8 @@
                                                | (icase ? REG_ICASE : 0)));
                   if (new->pnamereg == NULL)
                       return apr_pstrcat(cmd->pool, cmd->cmd->name,
  -                                       "Header name regex could not be compiled.", NULL);
  +                                       "Header name regex could not be "
  +                                       "compiled.", NULL);
               }
               else {
                   new->pnamereg = NULL;
  @@ -458,14 +460,15 @@
   
   static const command_rec setenvif_module_cmds[] =
   {
  -    AP_INIT_RAW_ARGS("SetEnvIf", add_setenvif, NULL,
  -                     OR_FILEINFO, "A header-name, regex and a list of variables."),
  -    AP_INIT_RAW_ARGS("SetEnvIfNoCase", add_setenvif, ICASE_MAGIC,
  -                     OR_FILEINFO, "a header-name, regex and a list of variables."),
  -    AP_INIT_RAW_ARGS("BrowserMatch", add_browser, NULL,
  -                     OR_FILEINFO, "A browser regex and a list of variables."),
  +    AP_INIT_RAW_ARGS("SetEnvIf", add_setenvif, NULL, OR_FILEINFO,
  +                     "A header-name, regex and a list of variables."),
  +    AP_INIT_RAW_ARGS("SetEnvIfNoCase", add_setenvif, ICASE_MAGIC, OR_FILEINFO,
  +                     "a header-name, regex and a list of variables."),
  +    AP_INIT_RAW_ARGS("BrowserMatch", add_browser, NULL, OR_FILEINFO,
  +                     "A browser regex and a list of variables."),
       AP_INIT_RAW_ARGS("BrowserMatchNoCase", add_browser, ICASE_MAGIC,
  -                     OR_FILEINFO, "A browser regex and a list of variables."),
  +                     OR_FILEINFO,
  +                     "A browser regex and a list of variables."),
       { NULL },
   };
   
  @@ -540,7 +543,9 @@
                        * the headers_in until we find a match or run out of
                        * headers.
                        */
  -                    const apr_array_header_t *arr = apr_table_elts(r->headers_in);
  +                    const apr_array_header_t
  +                        *arr = apr_table_elts(r->headers_in);
  +
                       elts = (const apr_table_entry_t *) arr->elts;
                       val = NULL;
                       for (j = 0; j < arr->nelts; ++j) {
  
  
  

Mime
View raw message