[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[leafnode-list] Re: leafnode-2.0.0.alpha20030621a released



Matthias Andree wrote:

> leafnode-2.0.0.alpha20030621a has been released. It is available as full
> tarball and as patch against the previous leafnode-2.0.0.alpha versions
> - From http://mandree.home.pages.de/leafnode/beta/

Ah, great! My gcc-2.95.3 (glibc-2.1.3) was a bit unhappy with
fetchnews.c, though:

fetchnews.c: In function `postarticles':
fetchnews.c:1525: warning: declaration of `dup' shadows global declaration
fetchnews.c:1533: parse error before `char'
fetchnews.c:1534: `ngs' undeclared (first use in this function)
fetchnews.c:1534: (Each undeclared identifier is reported only once
fetchnews.c:1534: for each function it appears in.)
fetchnews.c: In function `remove_watermark':
fetchnews.c:1619: warning: cast discards qualifiers from pointer target type

Regards...
		Michael

--- fetchnews.c~	Sat May 24 17:30:23 2003
+++ fetchnews.c	Sat Jun 21 16:11:45 2003
@@ -1522,15 +1522,16 @@
 				/* FIXME: don't fail here */
 			    }
 			} else {
-			    int dup = 0;
+			    int dupe = 0;
 			    ln_log(LNLOG_SINFO, LNLOG_CARTICLE,
 				   "Posting %s", *y);
 			    
-			    if (post_FILE(f, &line) || (dup = strncmp(line, "441 435 ", 8) == 0)) {
-				if (dup)
+			    if (post_FILE(f, &line) || (dupe = strncmp(line, "441 435 ", 8) == 0)) {
+			        char* ngs;
+			        if (dupe)
 				    ln_log(LNLOG_SINFO, LNLOG_CARTICLE,
 					    "Duplicate article %s, treating as success.", *y);
-				char *ngs = fgetheader(f, "Newsgroups:", 1);
+				ngs = fgetheader(f, "Newsgroups:", 1);
 				if (ngs != NULL) {
 				    char *mod = checkstatus(ngs, 'm');
 				    char *app = fgetheader(f, "Approved:", 1);

-- 
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list