httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject svn commit: r569938 - in /httpd/httpd/trunk/modules/ldap: util_ldap_cache.c util_ldap_cache_mgr.c
Date Mon, 27 Aug 2007 00:53:41 GMT
Author: trawick
Date: Sun Aug 26 17:53:41 2007
New Revision: 569938

URL: http://svn.apache.org/viewvc?rev=569938&view=rev
Log:
better apr_ctime() usage
  (too bad it is apr_ctime_LEN instead of apr_ctime_SIZE)

Modified:
    httpd/httpd/trunk/modules/ldap/util_ldap_cache.c
    httpd/httpd/trunk/modules/ldap/util_ldap_cache_mgr.c

Modified: httpd/httpd/trunk/modules/ldap/util_ldap_cache.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/ldap/util_ldap_cache.c?rev=569938&r1=569937&r2=569938&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/ldap/util_ldap_cache.c (original)
+++ httpd/httpd/trunk/modules/ldap/util_ldap_cache.c Sun Aug 26 17:53:41 2007
@@ -79,7 +79,7 @@
 void util_ldap_url_node_display(request_rec *r, util_ald_cache_t *cache, void *n)
 {
     util_url_node_t *node = n;
-    char date_str[APR_CTIME_LEN+1];
+    char date_str[APR_CTIME_LEN];
     const char *type_str;
     util_ald_cache_t *cache_node;
     int x;
@@ -218,7 +218,7 @@
 void util_ldap_search_node_display(request_rec *r, util_ald_cache_t *cache, void *n)
 {
     util_search_node_t *node = n;
-    char date_str[APR_CTIME_LEN+1];
+    char date_str[APR_CTIME_LEN];
 
     apr_ctime(date_str, node->lastbind);
 
@@ -288,7 +288,7 @@
 void util_ldap_compare_node_display(request_rec *r, util_ald_cache_t *cache, void *n)
 {
     util_compare_node_t *node = n;
-    char date_str[APR_CTIME_LEN+1];
+    char date_str[APR_CTIME_LEN];
     char *cmp_result;
     char *sub_groups_val;
     char *sub_groups_checked;

Modified: httpd/httpd/trunk/modules/ldap/util_ldap_cache_mgr.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/ldap/util_ldap_cache_mgr.c?rev=569938&r1=569937&r2=569938&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/ldap/util_ldap_cache_mgr.c (original)
+++ httpd/httpd/trunk/modules/ldap/util_ldap_cache_mgr.c Sun Aug 26 17:53:41 2007
@@ -602,7 +602,7 @@
     if (r->args && strlen(r->args)) {
         char cachetype[5], lint[2];
         unsigned int id, off;
-        char date_str[APR_CTIME_LEN+1];
+        char date_str[APR_CTIME_LEN];
 
         if ((3 == sscanf(r->args, scanfmt, cachetype, &id, &off, lint)) &&
             (id < util_ldap_cache->size)) {



Mime
View raw message