summaryrefslogtreecommitdiff
path: root/news/nn/patches/patch-ay
blob: fa6141d94065806e94471b905da35b7d50ac1016 (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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
$NetBSD: patch-ay,v 1.1 1999/07/26 21:19:33 tron Exp $

--- save.c.orig	Mon Sep 13 19:42:52 1993
+++ save.c	Mon Jul 26 23:11:39 1999
@@ -514,7 +514,7 @@
 		return 0;
 	    }
 	    current_folder_type = -1;
-	    if (ftell(save_file) != (off_t)0) {
+	    if (ftell(save_file) != (long)0) {
 		if (mode != NO_HEADER) set_folder_type(save_name);
 		save_mode &= ~FILE_IS_NEW;
 	    }
@@ -531,7 +531,7 @@
 	mailbox_format(save_file, 1);
 
     if (mode == FULL_HEADER) {
-	off_t cnt = ah->fpos - ah->hpos;
+	long cnt = ah->fpos - ah->hpos;
 	while (--cnt >= 0) {
 	    if ((c = getc(art)) == EOF) break;
 	    putc(c, save_file);
@@ -647,7 +647,7 @@
 char *dir, *file;
 {
     register int c;
-    off_t endpos;
+    long endpos;
     FILE *h;
 
     if (dir != (char *)NULL && file[0] != '/')
@@ -656,7 +656,7 @@
 	msg("Cannot open %s", file);
 	return;
     }
-    fseek(h, (off_t)0, 2);
+    fseek(h, (long)0, 2);
     if (ftell(h) > 0)
 	set_folder_type(file);
     else