httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject cvs commit: httpd-2.0/server request.c
Date Mon, 29 Oct 2001 15:19:03 GMT
wrowe       01/10/29 07:19:03

  Modified:    modules/loggers mod_log_config.c
               server   request.c
  Log:
      Use the _setn flavor which will avoid strdup'ing these strings, and
      skip the cleanups we don't need.
  
  Submitted by: Brian Pane <bpane@pacbell.net>
  
  Revision  Changes    Path
  1.70      +2 -2      httpd-2.0/modules/loggers/mod_log_config.c
  
  Index: mod_log_config.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/loggers/mod_log_config.c,v
  retrieving revision 1.69
  retrieving revision 1.70
  diff -u -r1.69 -r1.70
  --- mod_log_config.c	2001/09/19 06:53:26	1.69
  +++ mod_log_config.c	2001/10/29 15:19:02	1.70
  @@ -1024,8 +1024,8 @@
        */
       apr_pool_userdata_get(&data, userdata_key, s->process->pool);
       if (!data) {
  -        apr_pool_userdata_set((const void *)1, userdata_key,
  -                         apr_pool_cleanup_null, s->process->pool);
  +        apr_pool_userdata_setn((const void *)1, userdata_key,
  +                               NULL, s->process->pool);
           /* If logging for the first time after a restart, keep going. */
           if (!ap_my_generation) {
               return cls;
  
  
  
  1.77      +1 -2      httpd-2.0/server/request.c
  
  Index: request.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/request.c,v
  retrieving revision 1.76
  retrieving revision 1.77
  diff -u -r1.76 -r1.77
  --- request.c	2001/10/20 18:27:15	1.76
  +++ request.c	2001/10/29 15:19:03	1.77
  @@ -328,8 +328,7 @@
               cache = apr_pcalloc(r->pool, sizeof(*cache));
               cache->walked = apr_array_make(r->pool, 4, sizeof(walk_walked_t));
           }
  -        apr_pool_userdata_set(cache, cache_name, 
  -                              apr_pool_cleanup_null, r->pool);
  +        apr_pool_userdata_setn(cache, cache_name, NULL, r->pool);
       }
       return cache;
   }
  
  
  

Mime
View raw message