]> granicus.if.org Git - apache/commitdiff
Update callers of apr_explode_gmt to apr_time_exp_gmt. The
authorSander Striker <striker@apache.org>
Thu, 21 Mar 2002 10:10:41 +0000 (10:10 +0000)
committerSander Striker <striker@apache.org>
Thu, 21 Mar 2002 10:10:41 +0000 (10:10 +0000)
function was renamed in apr.

Submitted by: Thom May <thom@planetarytramp.net>

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94081 13f79535-47bb-0310-9956-ffa450edef68

include/util_time.h
modules/dav/fs/repos.c
modules/metadata/mod_usertrack.c
server/util.c
server/util_time.c
support/rotatelogs.c

index 1852f89fe5fd506cf41b0dbd4667d696766cf45b..b69aadc75950c90f413a770066ae49d9b4e0c36c 100644 (file)
@@ -92,7 +92,7 @@ AP_DECLARE(apr_status_t) ap_explode_recent_localtime(apr_time_exp_t *tm,
  * @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.
index 45889117879234f1c938eb250e86e41077b35363..5846cdfbc715a0a22d196aa982f290fba0d9faa7 100644 (file)
@@ -306,7 +306,7 @@ static void dav_format_time(int style, apr_time_t sec, char *buf)
     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" ?? */
index 2d83ff30be3d7095919db45e4c28a7d24bc6b5f8..39e58a697b98635fe854a35fa699a311424d87e2 100644 (file)
@@ -156,8 +156,8 @@ static void make_cookie(request_rec *r)
 
         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",
index 3885786520e563760d0f1ea805bba71b358e6c2d..e66f291da52843ada0304ecd0c88e613868a2f0b 100644 (file)
@@ -148,7 +148,7 @@ AP_DECLARE(char *) ap_ht_time(apr_pool_t *p, apr_time_t t, const char *fmt, int
        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.
index 5b33e3ff4e9af1299911bd0776ba1350cbf1405c..e9131a160240a930cb05478709501b41aec6dc6b 100644 (file)
@@ -130,7 +130,7 @@ static apr_status_t cached_explode(apr_time_exp_t *xt, apr_time_t t,
             (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 @@ static apr_status_t cached_explode(apr_time_exp_t *xt, apr_time_t t,
     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);
index b71e44533cd8178827d62759e84cc72d14114c84..834a522976c4445ed3c6f29378c7730008a1db44 100644 (file)
@@ -164,7 +164,7 @@ int main (int argc, char *argv[])
                 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 {