5215c15086
are various bug fixes and code cleanups.
25 lines
749 B
Text
25 lines
749 B
Text
$NetBSD: patch-au,v 1.3 2006/10/14 19:33:45 schwarz Exp $
|
|
|
|
--- news.c.orig 2005-04-20 01:56:27.000000000 +0200
|
|
+++ news.c 2006-10-14 20:30:52.000000000 +0200
|
|
@@ -255,7 +255,7 @@
|
|
|
|
#ifndef DONT_COUNT_LINES
|
|
int c;
|
|
- off_t digest_artlen = 0;
|
|
+ long digest_artlen = 0;
|
|
#endif /* DONT_COUNT_LINES */
|
|
|
|
#ifdef NNTP
|
|
@@ -301,9 +301,9 @@
|
|
if (fstat(fileno(f), &statb) < 0 ||
|
|
|
|
#ifdef NOV
|
|
- (art->lpos = statb.st_size, statb.st_size <= (off_t) 0)) {
|
|
+ (art->lpos = (long)statb.st_size, statb.st_size <= (off_t) 0)) {
|
|
#else
|
|
- statb.st_size < art->lpos || statb.st_size <= (off_t) 0) {
|
|
+ (long)statb.st_size < art->lpos || statb.st_size <= (off_t) 0) {
|
|
#endif /* NOV */
|
|
|
|
fclose(f);
|