summaryrefslogtreecommitdiffstats
path: root/modules/ldap/util_ldap_cache.c
diff options
context:
space:
mode:
authorYann Ylavic <ylavic@apache.org>2018-03-20 23:30:52 +0100
committerYann Ylavic <ylavic@apache.org>2018-03-20 23:30:52 +0100
commitcb43a0b5a09826472aef2d8f33881dd0f3c7911f (patch)
treef5f93de77f0e188f9b98a7b89d8bde95673c93b7 /modules/ldap/util_ldap_cache.c
parentcore: ap_getline_core() reads nothing for n == 0. (diff)
downloadapache2-cb43a0b5a09826472aef2d8f33881dd0f3c7911f.tar.xz
apache2-cb43a0b5a09826472aef2d8f33881dd0f3c7911f.zip
mod_ldap: fix format warnings.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1827366 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/ldap/util_ldap_cache.c')
-rw-r--r--modules/ldap/util_ldap_cache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/ldap/util_ldap_cache.c b/modules/ldap/util_ldap_cache.c
index 7698ffe1ef..774a76e1ac 100644
--- a/modules/ldap/util_ldap_cache.c
+++ b/modules/ldap/util_ldap_cache.c
@@ -113,7 +113,7 @@ void util_ldap_url_node_display(request_rec *r, util_ald_cache_t *cache, void *n
"<td nowrap>%ld</td>"
"<td nowrap>%ld</td>"
"<td nowrap>%ld</td>"
- "<td nowrap>%ld</td>"
+ "<td nowrap>%" APR_TIME_T_FMT "</td>"
"<td nowrap>%ld</td>"
"<td nowrap>%s</td>"
"</tr>",
@@ -122,7 +122,7 @@ void util_ldap_url_node_display(request_rec *r, util_ald_cache_t *cache, void *n
cache_node->size,
cache_node->maxentries,
cache_node->numentries,
- cache_node->ttl / APR_USEC_PER_SEC,
+ apr_time_sec(cache_node->ttl),
cache_node->fullmark,
date_str);
}