From: Yann Ylavic Date: Tue, 20 Mar 2018 22:30:52 +0000 (+0000) Subject: mod_ldap: fix format warnings. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cb43a0b5a09826472aef2d8f33881dd0f3c7911f;p=apache mod_ldap: fix format warnings. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1827366 13f79535-47bb-0310-9956-ffa450edef68 --- 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 "%ld" "%ld" "%ld" - "%ld" + "%" APR_TIME_T_FMT "" "%ld" "%s" "", @@ -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); } diff --git a/modules/ldap/util_ldap_cache_mgr.c b/modules/ldap/util_ldap_cache_mgr.c index 989054549f..b0c4a293aa 100644 --- a/modules/ldap/util_ldap_cache_mgr.c +++ b/modules/ldap/util_ldap_cache_mgr.c @@ -741,7 +741,7 @@ char *util_ald_cache_display(request_rec *r, util_ldap_state_t *st) "\n" "\n" "TTL (sec):" - "%ld" + "%" APR_TIME_T_FMT "" "\n" "\n" "Full Mark:" @@ -755,7 +755,7 @@ char *util_ald_cache_display(request_rec *r, util_ldap_state_t *st) util_ldap_cache->size, util_ldap_cache->maxentries, util_ldap_cache->numentries, - util_ldap_cache->ttl / APR_USEC_PER_SEC, + apr_time_sec(util_ldap_cache->ttl), util_ldap_cache->fullmark, date_str);