httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stri...@apache.org
Subject cvs commit: httpd-2.0/support rotatelogs.c
Date Thu, 21 Mar 2002 10:10:41 GMT
striker     02/03/21 02:10:41

  Modified:    include  util_time.h
               modules/dav/fs repos.c
               modules/metadata mod_usertrack.c
               server   util.c util_time.c
               support  rotatelogs.c
  Log:
  Update callers of apr_explode_gmt to apr_time_exp_gmt.  The
  function was renamed in apr.
  
  Submitted by: Thom May <thom@planetarytramp.net>
  
  Revision  Changes    Path
  1.5       +1 -1      httpd-2.0/include/util_time.h
  
  Index: util_time.h
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/include/util_time.h,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- util_time.h	17 Mar 2002 05:13:12 -0000	1.4
  +++ util_time.h	21 Mar 2002 10:10:40 -0000	1.5
  @@ -92,7 +92,7 @@
    * @param tm the exploded time
    * @param t the time to explode: MUST be within the last
    *          AP_TIME_RECENT_THRESHOLD seconds
  - * @note This is a faster alternative to apr_explode_gmt that uses
  + * @note This is a faster alternative to apr_time_exp_gmt that uses
    *       a cache of pre-exploded time structures.  It is useful for things
    *       that need to explode the current time multiple times per second,
    *       like loggers.
  
  
  
  1.67      +1 -1      httpd-2.0/modules/dav/fs/repos.c
  
  Index: repos.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/dav/fs/repos.c,v
  retrieving revision 1.66
  retrieving revision 1.67
  diff -u -r1.66 -r1.67
  --- repos.c	13 Mar 2002 20:47:45 -0000	1.66
  +++ repos.c	21 Mar 2002 10:10:40 -0000	1.67
  @@ -306,7 +306,7 @@
       apr_time_exp_t tms;
       
       /* ### what to do if fails? */
  -    (void) apr_explode_gmt(&tms, sec);
  +    (void) apr_time_exp_gmt(&tms, sec);
   
       if (style == DAV_STYLE_ISO8601) {
   	/* ### should we use "-00:00" instead of "Z" ?? */
  
  
  
  1.37      +2 -2      httpd-2.0/modules/metadata/mod_usertrack.c
  
  Index: mod_usertrack.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/metadata/mod_usertrack.c,v
  retrieving revision 1.36
  retrieving revision 1.37
  diff -u -r1.36 -r1.37
  --- mod_usertrack.c	13 Mar 2002 20:47:53 -0000	1.36
  +++ mod_usertrack.c	21 Mar 2002 10:10:40 -0000	1.37
  @@ -156,8 +156,8 @@
   
           if ((dcfg->style == CT_UNSET) || (dcfg->style == CT_NETSCAPE)) {
   	    apr_time_exp_t tms;
  -            apr_explode_gmt(&tms, r->request_time 
  -                                + cls->expires * APR_USEC_PER_SEC);
  +            apr_time_exp_gmt(&tms, r->request_time 
  +                                 + cls->expires * APR_USEC_PER_SEC);
               new_cookie = apr_psprintf(r->pool,
                                          "%s; expires=%s, "
                                          "%.2d-%s-%.2d %.2d:%.2d:%.2d GMT",
  
  
  
  1.123     +1 -1      httpd-2.0/server/util.c
  
  Index: util.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/util.c,v
  retrieving revision 1.122
  retrieving revision 1.123
  diff -u -r1.122 -r1.123
  --- util.c	21 Mar 2002 05:28:14 -0000	1.122
  +++ util.c	21 Mar 2002 10:10:40 -0000	1.123
  @@ -148,7 +148,7 @@
   	const char *f;
   	char *strp;
   
  -        apr_explode_gmt(&xt, t);
  +        apr_time_exp_gmt(&xt, t);
   	/* Convert %Z to "GMT" and %z to "+0000";
   	 * on hosts that do not have a time zone string in struct tm,
   	 * strftime must assume its argument is local time.
  
  
  
  1.6       +2 -2      httpd-2.0/server/util_time.c
  
  Index: util_time.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/util_time.c,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- util_time.c	17 Mar 2002 05:13:12 -0000	1.5
  +++ util_time.c	21 Mar 2002 10:10:41 -0000	1.6
  @@ -130,7 +130,7 @@
               (seconds != cache_element_snapshot.t_validate)) {
               /* Invalid snapshot */
               if (use_gmt) {
  -                return apr_explode_gmt(xt, t);
  +                return apr_time_exp_gmt(xt, t);
               }
               else {
                   return apr_explode_localtime(xt, t);
  @@ -145,7 +145,7 @@
       else {
           apr_status_t r;
           if (use_gmt) {
  -            r = apr_explode_gmt(xt, t);
  +            r = apr_time_exp_gmt(xt, t);
           }
           else {
               r = apr_explode_localtime(xt, t);
  
  
  
  1.20      +1 -1      httpd-2.0/support/rotatelogs.c
  
  Index: rotatelogs.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/support/rotatelogs.c,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- rotatelogs.c	13 Mar 2002 20:48:06 -0000	1.19
  +++ rotatelogs.c	21 Mar 2002 10:10:41 -0000	1.20
  @@ -164,7 +164,7 @@
                   apr_time_exp_t e;
                   apr_size_t rs;
   
  -                apr_explode_gmt(&e, tNow);
  +                apr_time_exp_gmt(&e, tNow);
                   apr_strftime(buf2, &rs, sizeof(buf2), szLogRoot, &e);
               }
               else {
  
  
  

Mime
View raw message