mod_ldap: fix format warnings.
authorYann Ylavic <ylavic@apache.org>
Tue, 20 Mar 2018 22:30:52 +0000 (22:30 +0000)
committerYann Ylavic <ylavic@apache.org>
Tue, 20 Mar 2018 22:30:52 +0000 (22:30 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1827366 13f79535-47bb-0310-9956-ffa450edef68

modules/ldap/util_ldap_cache.c
modules/ldap/util_ldap_cache_mgr.c

index 7698ffe1ef61ef4067e7f64bcc00508a47ec753b..774a76e1acfd05acf990e9e1b552c63272c96796 100644 (file)
@@ -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);
     }
index 989054549f39c5ad307117ff8dce2bc5b83342b1..b0c4a293aa60c44e2ce16e010a5aebe2a7c9079d 100644 (file)
@@ -741,7 +741,7 @@ char *util_ald_cache_display(request_rec *r, util_ldap_state_t *st)
                                "</tr>\n"
                                "<tr>\n"
                                "<td bgcolor='#000000'><font size='-1' face='Arial,Helvetica' color='#ffffff'><b>TTL (sec):</b></font></td>"
-                               "<td bgcolor='#ffffff'><font size='-1' face='Arial,Helvetica' color='#000000'><b>%ld</b></font></td>"
+                               "<td bgcolor='#ffffff'><font size='-1' face='Arial,Helvetica' color='#000000'><b>%" APR_TIME_T_FMT "</b></font></td>"
                                "</tr>\n"
                                "<tr>\n"
                                "<td bgcolor='#000000'><font size='-1' face='Arial,Helvetica' color='#ffffff'><b>Full Mark:</b></font></td>"
@@ -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);