[Pkg-wmaker-commits] [wmbiff] 06/19: cleanup unused variables

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


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

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

commit 4256c2cd279e12cf71ca117b24c8238070436571
Author: bluehal <bluehal>
Date:   Sun Dec 29 00:57:47 2002 +0000

    cleanup unused variables
---
 wmbiff/wmbiff.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/wmbiff/wmbiff.c b/wmbiff/wmbiff.c
index 39c7ee6..6c81e69 100644
--- a/wmbiff/wmbiff.c
+++ b/wmbiff/wmbiff.c
@@ -1,4 +1,4 @@
-/* $Id: wmbiff.c,v 1.39 2002/12/29 00:37:26 bluehal Exp $ */
+/* $Id: wmbiff.c,v 1.40 2002/12/29 00:57:47 bluehal Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include <config.h>
@@ -725,7 +725,7 @@ int ReadLine(FILE * fp, char *setting, char *value, int *mbox_index)
 {
 	char buf[BUF_SIZE];
 	char *p, *q;
-	int len, aux;
+	int len;
 
 	*setting = '\0';
 	*value = '\0';
@@ -759,13 +759,17 @@ int ReadLine(FILE * fp, char *setting, char *value, int *mbox_index)
 	strcpy(value, q);
 
 	if (sscanf(p, "%[a-z.]%d", setting, mbox_index) == 2) {
+		/* mailbox-specific configuration, ends in a digit */
 		if (*mbox_index < 0 || *mbox_index >= MAX_NUM_MAILBOXES) {
 			DMA(DEBUG_ERROR, "invalid mailbox number %d\n", *mbox_index);
 			exit(EXIT_FAILURE);
 		}
 	} else if (sscanf(p, "%[a-z]", setting) == 1) {
+		/* global configuration, all text. */
 		*mbox_index = -1;
 	} else {
+		/* we found an uncommented line that has an equals,
+		   but is non-alphabetic. */
 		DMA(DEBUG_INFO, "unparsed setting %s\n", p);
 		return -1;
 	}

-- 
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