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

Re: [leafnode-list] Re: leafnode-2.0.0.alpha20021108a



Reiner Steib <4uce.02.r.steib@xxxxxxx> writes:

> Before I forget: I couldn't compile alpha20021108a (neither on SuSE
> 7.1 nor on 7.2):
>
> ,----
> | gcc -DHAVE_CONFIG_H -I. -I. -I.     -g -O2  -Wall -W \
> |   -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wbad-function-cast \
> |   -Wcast-qual -Wcast-align -Wwrite-strings -Waggregate-return \
> |   -Wmissing-declarations -Wnested-externs -ggdb -fno-common -c `test -f \
> |   'fetchnews.c' || echo './'`fetchnews.c \
> | fetchnews.c: In function `nntpactive':
> | fetchnews.c:1357: parse error before `unsigned'
> | fetchnews.c: In function `remove_watermark':
> | fetchnews.c:1596: warning: cast discards qualifiers from pointer target type
> | make[2]: *** [fetchnews.o] Error 1
> `----

This patch should fix it (in CVS):

Index: fetchnews.c
===================================================================
RCS file: /var/CVS/leafnode-2/fetchnews.c,v
retrieving revision 1.106
diff -u -r1.106 fetchnews.c
--- fetchnews.c	2002/11/08 23:40:07	1.106
+++ fetchnews.c	2002/11/10 18:03:44
@@ -1352,10 +1352,10 @@
 	    if (is_interesting(l)
 		    && (forceact || !(active && findgroup(l, active, -1)))
 		    && chdirgroup(l, FALSE)) {
+		unsigned long c;
 		first = ULONG_MAX;
 		last = 0;
-		unsigned long count;
-		if (getwatermarks(&first, &last, &count) || 0 == count) {
+		if (getwatermarks(&first, &last, &c) || 0 == c) {
 		    /* trouble or empty group */
 		    first = last = 0;
 		}


-- 
Matthias Andree

http://sourceforge.net/projects/leafnode/   - leafnode-1 tarballs
http://mandree.home.pages.de/leafnode/beta/ - leafnode-2 tarballs

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