3 --- articles.c.orig Wed Oct 3 03:01:08 2001
4 +++ articles.c Sun Jul 7 21:33:09 2002
9 - off_t data_offset, data_size;
10 + long data_offset, data_size;
12 cross_post_number cross_post;
15 data = open_data_file(gh, 'd', OPEN_READ);
16 if (data == NULL) return -10;
18 - if ((data_offset = get_data_offset(gh, first_article)) == (off_t)(-1))
19 + if ((data_offset = get_data_offset(gh, first_article)) == (long)(-1))
25 data_offset += data_size;
27 - if (db_hdr.dh_lpos == (off_t)0)
28 + if (db_hdr.dh_lpos == (long)0)
29 continue; /* article not accessible */
31 if (db_hdr.dh_number > gh->last_db_article
35 ah->hpos = db_hdr.dh_hpos;
36 - ah->fpos = ah->hpos + (off_t)(db_hdr.dh_fpos);
37 + ah->fpos = ah->hpos + (long)(db_hdr.dh_fpos);
38 ah->lpos = db_hdr.dh_lpos;
40 ah->attr = test_article(ah);