From: William A. Rowe Jr Date: Fri, 14 Jun 2002 17:16:03 +0000 (+0000) Subject: Cleanup some type mismatch emits and consistify to our new apr time helpers X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8e604eee5f312922a71b86c56d9bdd10fe05202b;p=apache Cleanup some type mismatch emits and consistify to our new apr time helpers git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95675 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/support/rotatelogs.c b/support/rotatelogs.c index fbb2b03292..02fec519e7 100644 --- a/support/rotatelogs.c +++ b/support/rotatelogs.c @@ -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;