summaryrefslogtreecommitdiff
path: root/news/nn/patches/patch-au
blob: edddc8b7e600eee3145d63feee8d1ebb4b7aec1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
$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);