diff options
Diffstat (limited to 'news/nn/patches/patch-ay')
-rw-r--r-- | news/nn/patches/patch-ay | 49 |
1 files changed, 20 insertions, 29 deletions
diff --git a/news/nn/patches/patch-ay b/news/nn/patches/patch-ay index 02971512b4c..cd5082211e2 100644 --- a/news/nn/patches/patch-ay +++ b/news/nn/patches/patch-ay @@ -1,40 +1,31 @@ -$NetBSD: patch-ay,v 1.2 2002/07/08 02:21:20 kim Exp $ +$NetBSD: patch-ay,v 1.3 2006/10/14 19:33:45 schwarz Exp $ ---- save.c.orig Thu Jul 12 01:18:34 2001 -+++ save.c Sun Jul 7 21:39:15 2002 -@@ -521,7 +521,7 @@ +--- save.c.orig 2005-03-30 21:29:29.000000000 +0200 ++++ save.c 2006-10-14 20:37:17.000000000 +0200 +@@ -525,7 +525,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); +- 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; - } -@@ -538,7 +538,7 @@ +@@ -542,7 +542,7 @@ mailbox_format(save_file, 1); if (mode == FULL_HEADER || mode == HEADER_ONLY) { -- off_t cnt = ah->fpos - ah->hpos; -+ long cnt = ah->fpos - ah->hpos; +- 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); -@@ -656,7 +656,7 @@ - char *dir, *file; + if ((c = getc(art)) == EOF) + break; +@@ -663,7 +663,7 @@ + store_header(article_header * ah, FILE * f, char *dir, char *file) { - register int c; -- off_t endpos; -+ long endpos; - FILE *h; + register int c; +- off_t endpos; ++ long endpos; + FILE *h; - if (dir != (char *)NULL && file[0] != '/') -@@ -665,7 +665,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 + if (dir != (char *) NULL && file[0] != '/') |