You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by sf...@apache.org on 2011/10/22 01:34:29 UTC
svn commit: r1187592 - in /httpd/mod_mbox/trunk/module-2.0: mbox_parse.c
mbox_thread.c
Author: sf
Date: Fri Oct 21 23:34:29 2011
New Revision: 1187592
URL: http://svn.apache.org/viewvc?rev=1187592&view=rev
Log:
Fix a bunch of compiler warnings about missing prototypes, unused variables,
and "pointer targets in passing argument 3 of 'apr_hash_this' differ in
signedness"
Modified:
httpd/mod_mbox/trunk/module-2.0/mbox_parse.c
httpd/mod_mbox/trunk/module-2.0/mbox_thread.c
Modified: httpd/mod_mbox/trunk/module-2.0/mbox_parse.c
URL: http://svn.apache.org/viewvc/httpd/mod_mbox/trunk/module-2.0/mbox_parse.c?rev=1187592&r1=1187591&r2=1187592&view=diff
==============================================================================
--- httpd/mod_mbox/trunk/module-2.0/mbox_parse.c (original)
+++ httpd/mod_mbox/trunk/module-2.0/mbox_parse.c Fri Oct 21 23:34:29 2011
@@ -873,7 +873,7 @@ apr_status_t mbox_generate_index(request
MBOX_LIST *mbox_load_index(request_rec *r, apr_file_t *f, int *count)
{
apr_status_t status;
- MBOX_LIST *head, *keys;
+ MBOX_LIST *head;
apr_dbm_t *msgDB;
apr_datum_t msgKey;
char *temp;
@@ -894,7 +894,6 @@ MBOX_LIST *mbox_load_index(request_rec *
/* APR SDBM iteration is badly broken. You can't skip around during
* an iteration. Fixing this would be nice.
*/
- keys = 0;
head = 0;
apr_pool_create(&tpool, r->pool);
status = apr_dbm_firstkey(msgDB, &msgKey);
Modified: httpd/mod_mbox/trunk/module-2.0/mbox_thread.c
URL: http://svn.apache.org/viewvc/httpd/mod_mbox/trunk/module-2.0/mbox_thread.c?rev=1187592&r1=1187591&r2=1187592&view=diff
==============================================================================
--- httpd/mod_mbox/trunk/module-2.0/mbox_thread.c (original)
+++ httpd/mod_mbox/trunk/module-2.0/mbox_thread.c Fri Oct 21 23:34:29 2011
@@ -25,7 +25,7 @@
/*
* Determines if a string is a reply
*/
-int is_reply_string(char *c)
+static int is_reply_string(char *c)
{
/* Match the following cases: Re:, RE:, RE[1]:, Re: Re[2]: Re: */
if (c) {
@@ -49,7 +49,7 @@ int is_reply_string(char *c)
/*
* Determines if a message is a reply
*/
-int is_reply(Message *m)
+static int is_reply(Message *m)
{
return ((m && m->subject) ? is_reply_string(m->subject) : 0);
}
@@ -91,7 +91,7 @@ static char *strip_subject(apr_pool_t *p
* Detects if the needle can be reached from either the haystack's
* next or children.
*/
-int detect_loop(Container *haystack, Container *needle)
+static int detect_loop(Container *haystack, Container *needle)
{
if (!haystack || !needle)
return 0;
@@ -108,7 +108,7 @@ int detect_loop(Container *haystack, Con
return 0;
}
-void unlink_parent(Container *c)
+static void unlink_parent(Container *c)
{
Container *next;
@@ -126,7 +126,7 @@ void unlink_parent(Container *c)
}
}
-void prune_container(Container *c)
+static void prune_container(Container *c)
{
Container *nextChild, *lastChild, *tmpChild;
@@ -166,7 +166,7 @@ void prune_container(Container *c)
/*
* Takes the right container and makes all children children of the left.
*/
-void join_container(Container *l, Container *r)
+static void join_container(Container *l, Container *r)
{
Container *next, *tmp;
if (!r)
@@ -185,7 +185,7 @@ void join_container(Container *l, Contai
/*
* Takes the right container and makes it a child of the left.
*/
-void append_container(Container *l, Container *r)
+static void append_container(Container *l, Container *r)
{
if (!r)
return;
@@ -236,7 +236,7 @@ static void delete_from_hash(apr_pool_t
{
apr_hash_index_t *hashIndex;
void *hashKey, *hashVal;
- apr_size_t hashLen;
+ apr_ssize_t hashLen;
for (hashIndex = apr_hash_first(p, h); hashIndex;
hashIndex = apr_hash_next(hashIndex)) {
@@ -251,7 +251,7 @@ static void delete_from_hash(apr_pool_t
/*
* Comparison function called by mbox_sort_linked_list
*/
-int compare_siblings(void *p, void *q, void *pointer)
+static int compare_siblings(void *p, void *q, void *pointer)
{
Container *a = (Container *) p;
Container *b = (Container *) q;
@@ -268,7 +268,7 @@ int compare_siblings(void *p, void *q, v
/*
* Sorts the siblings by date and returns the first item in the list.
*/
-Container *sort_siblings(Container *c)
+static Container *sort_siblings(Container *c)
{
Container *sibling = c;
@@ -299,7 +299,7 @@ Container *calculate_threads(apr_pool_t
void *hashKey, *hashVal, *subjectVal;
char *subject;
int msgIDLen, refLen, i;
- apr_size_t hashLen, subjectLen;
+ apr_ssize_t hashLen, subjectLen;
/* FIXME: Use APR_HASH_KEY_STRING instead? Maybe slower. */
h = apr_hash_make(p);