]> granicus.if.org Git - apache/commitdiff
Cleanup some type mismatch emits and consistify to our new apr time helpers
authorWilliam A. Rowe Jr <wrowe@apache.org>
Fri, 14 Jun 2002 17:16:03 +0000 (17:16 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Fri, 14 Jun 2002 17:16:03 +0000 (17:16 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95675 13f79535-47bb-0310-9956-ffa450edef68

support/rotatelogs.c

index fbb2b032924f12cf3a62836d790f8ab04d7d0085..02fec519e748c85fea32e2652320e2b7b45c50cf 100644 (file)
@@ -179,7 +179,7 @@ int main (int argc, const char * const argv[])
         }
         else if (sRotation) {
             apr_finfo_t finfo;
-            unsigned int current_size = -1;
+            apr_off_t current_size = -1;
 
             if ((nLogFD != NULL) && 
                 (apr_file_info_get(&finfo, APR_FINFO_SIZE, nLogFD) == APR_SUCCESS)) {
@@ -202,10 +202,10 @@ int main (int argc, const char * const argv[])
             if (tRotation)
                 tLogStart = (now / tRotation) * tRotation;
             else
-                tLogStart = apr_time_now() / APR_USEC_PER_SEC;
+                tLogStart = (int)apr_time_sec(apr_time_now());
 
             if (use_strftime) {
-                       apr_time_t tNow = tLogStart * APR_USEC_PER_SEC;
+                apr_time_t tNow = apr_time_from_sec(tLogStart);
                 apr_time_exp_t e;
                 apr_size_t rs;