Skip to content

Commit 8e604ee

Browse files
committed
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
1 parent be4fe79 commit 8e604ee

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

support/rotatelogs.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ int main (int argc, const char * const argv[])
179179
}
180180
else if (sRotation) {
181181
apr_finfo_t finfo;
182-
unsigned int current_size = -1;
182+
apr_off_t current_size = -1;
183183

184184
if ((nLogFD != NULL) &&
185185
(apr_file_info_get(&finfo, APR_FINFO_SIZE, nLogFD) == APR_SUCCESS)) {
@@ -202,10 +202,10 @@ int main (int argc, const char * const argv[])
202202
if (tRotation)
203203
tLogStart = (now / tRotation) * tRotation;
204204
else
205-
tLogStart = apr_time_now() / APR_USEC_PER_SEC;
205+
tLogStart = (int)apr_time_sec(apr_time_now());
206206

207207
if (use_strftime) {
208-
apr_time_t tNow = tLogStart * APR_USEC_PER_SEC;
208+
apr_time_t tNow = apr_time_from_sec(tLogStart);
209209
apr_time_exp_t e;
210210
apr_size_t rs;
211211

0 commit comments

Comments
 (0)