httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pque...@apache.org
Subject svn commit: r454818 - in /httpd/mod_mbox/branches/surgery/libmbox: mbox_cache.c mbox_mime.c mbox_search.c
Date Tue, 10 Oct 2006 16:44:13 GMT
Author: pquerna
Date: Tue Oct 10 09:44:12 2006
New Revision: 454818

URL: http://svn.apache.org/viewvc?view=rev&rev=454818
Log:
Fix more -Wall issues.

Modified:
    httpd/mod_mbox/branches/surgery/libmbox/mbox_cache.c
    httpd/mod_mbox/branches/surgery/libmbox/mbox_mime.c
    httpd/mod_mbox/branches/surgery/libmbox/mbox_search.c

Modified: httpd/mod_mbox/branches/surgery/libmbox/mbox_cache.c
URL: http://svn.apache.org/viewvc/httpd/mod_mbox/branches/surgery/libmbox/mbox_cache.c?view=diff&rev=454818&r1=454817&r2=454818
==============================================================================
--- httpd/mod_mbox/branches/surgery/libmbox/mbox_cache.c (original)
+++ httpd/mod_mbox/branches/surgery/libmbox/mbox_cache.c Tue Oct 10 09:44:12 2006
@@ -290,6 +290,8 @@
     nv.dsize = sizeof(mli->mtime);
 
     rv = apr_dbm_store(mli->db, key, nv);
-    /* dump_dbm(mli->db); */
+    if (0) {
+        dump_dbm(mli->db);
+    }
     return rv;
 }

Modified: httpd/mod_mbox/branches/surgery/libmbox/mbox_mime.c
URL: http://svn.apache.org/viewvc/httpd/mod_mbox/branches/surgery/libmbox/mbox_mime.c?view=diff&rev=454818&r1=454817&r2=454818
==============================================================================
--- httpd/mod_mbox/branches/surgery/libmbox/mbox_mime.c (original)
+++ httpd/mod_mbox/branches/surgery/libmbox/mbox_mime.c Tue Oct 10 09:44:12 2006
@@ -203,7 +203,7 @@
         /* If the boundary was not given, we must look for it in the headers */
         if (!boundary) {
             int quoted = 0;
-            char c;
+            char c = '\0';
 
             tmp = ap_strstr(body, "boundary=");
             if (!tmp) {

Modified: httpd/mod_mbox/branches/surgery/libmbox/mbox_search.c
URL: http://svn.apache.org/viewvc/httpd/mod_mbox/branches/surgery/libmbox/mbox_search.c?view=diff&rev=454818&r1=454817&r2=454818
==============================================================================
--- httpd/mod_mbox/branches/surgery/libmbox/mbox_search.c (original)
+++ httpd/mod_mbox/branches/surgery/libmbox/mbox_search.c Tue Oct 10 09:44:12 2006
@@ -117,8 +117,6 @@
 }
 #endif
 
-static int doc_count = 0;
-
 apr_status_t mbox_indexer_add(mbox_indexer_t* ctx, mbox_search_doc_t* doci)
 {
 #ifdef NO_MBOX_SEARCH
@@ -126,6 +124,8 @@
 #else
     lcn_error_t *err;
     lcn_document_t *doc;
+    int doc_count = 0;
+
 
     err = lcn_document_create (&doc, ctx->tpool);
     if (err) {



Mime
View raw message