[Pkg-wmaker-commits] [wmbiff] 38/38: warnings cleanup

Doug Torrance dtorrance-guest at moszumanska.debian.org
Thu Aug 20 03:03:43 UTC 2015


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to tag wmbiff_0_4_16
in repository wmbiff.

commit 269329250ee05d6fb8bcc848231a15f000e41ee2
Author: bluehal <bluehal>
Date:   Mon Jul 7 09:00:16 2003 +0000

    warnings cleanup
---
 wmbiff/Imap4Client.c | 35 +++++++++++++++++------------------
 1 file changed, 17 insertions(+), 18 deletions(-)

diff --git a/wmbiff/Imap4Client.c b/wmbiff/Imap4Client.c
index 4e99b46..3beccc4 100644
--- a/wmbiff/Imap4Client.c
+++ b/wmbiff/Imap4Client.c
@@ -336,12 +336,28 @@ int imap_checkmail( /*@notnull@ */ Pop3 pc)
 	return 0;
 }
 
+void imap_releaseHeaders(Pop3 pc
+						 __attribute__ ((unused)), struct msglst *h)
+{
+	assert(h != NULL);
+	/* allow the list to be released next time around */
+	if (h->in_use <= 0) {
+		/* free the old one */
+		while (h != NULL) {
+			struct msglst *n = h->next;
+			free(h);
+			h = n;
+		}
+	} else {
+		h->in_use--;
+	}
+}
+
 void imap_cacheHeaders( /*@notnull@ */ Pop3 pc)
 {
 	struct connection_state *scs = state_for_pcu(pc);
 	char *msgid;
 	char buf[BUF_SIZE];
-	struct msglst *h;
 
 	if (scs == NULL) {
 		(void) imap_open(pc);
@@ -432,23 +448,6 @@ struct msglst *imap_getHeaders( /*@notnull@ */ Pop3 pc)
 	return pc->headerCache;
 }
 
-void imap_releaseHeaders(Pop3 pc
-						 __attribute__ ((unused)), struct msglst *h)
-{
-	assert(h != NULL);
-	/* allow the list to be released next time around */
-	if (h->in_use <= 0) {
-		/* free the old one */
-		while (h != NULL) {
-			struct msglst *n = h->next;
-			free(h);
-			h = n;
-		}
-	} else {
-		h->in_use--;
-	}
-}
-
 /* parse the config line to setup the Pop3 structure */
 int imap4Create( /*@notnull@ */ Pop3 pc, const char *const str)
 {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmbiff.git



More information about the Pkg-wmaker-commits mailing list