summaryrefslogtreecommitdiff
path: root/news/nn/patches/patch-ar
diff options
context:
space:
mode:
Diffstat (limited to 'news/nn/patches/patch-ar')
-rw-r--r--news/nn/patches/patch-ar58
1 files changed, 11 insertions, 47 deletions
diff --git a/news/nn/patches/patch-ar b/news/nn/patches/patch-ar
index 16ad0c29619..181a3757586 100644
--- a/news/nn/patches/patch-ar
+++ b/news/nn/patches/patch-ar
@@ -1,49 +1,13 @@
-$NetBSD: patch-ar,v 1.2 2002/07/08 02:21:20 kim Exp $
+$NetBSD: patch-ar,v 1.3 2006/10/14 19:33:45 schwarz Exp $
---- kill.c.orig Mon Jun 17 23:58:08 2002
-+++ kill.c Sun Jul 7 21:33:10 2002
-@@ -424,7 +424,7 @@
+--- kill.c.orig 2005-04-20 01:53:17.000000000 +0200
++++ kill.c 2006-10-14 20:23:09.000000000 +0200
+@@ -450,7 +450,7 @@
typedef struct {
- long ckh_magic;
- time_t ckh_db_check;
-- off_t ckh_pattern_offset;
-+ long ckh_pattern_offset;
- long ckh_pattern_size;
- long ckh_entries;
- long ckh_regexp_size;
-@@ -579,7 +579,7 @@
- comp_kill_header header;
- comp_kill_entry entry;
- time_t now, age;
-- off_t cur_line_start;
-+ long cur_line_start;
- char line[512];
- register char *cp, *np;
- register int c;
-@@ -605,7 +605,7 @@
-
- tprintf("\nCompiling kill file\n");
-
-- fseek(compf, (off_t)sizeof(header), 0);
-+ fseek(compf, (long)sizeof(header), 0);
-
- now = cur_time();
-
-@@ -850,7 +850,7 @@
-
- if (header.ckh_pattern_size > 0) {
- kill_patterns = newstr(header.ckh_pattern_size);
-- fseek(killf, (off_t)(header.ckh_entries * sizeof(entry)), 1);
-+ fseek(killf, (long)(header.ckh_entries * sizeof(entry)), 1);
- if (fread(kill_patterns, sizeof(char), (int)header.ckh_pattern_size, killf)
- != header.ckh_pattern_size) goto err;
- } else
-@@ -862,7 +862,7 @@
-
- tb = group_regexp_table;
-
-- fseek(killf, (off_t)sizeof(header), 0);
-+ fseek(killf, (long)sizeof(header), 0);
- for (n = header.ckh_entries, kl = kill_tab; --n >= 0; kl++) {
- if (fread((char *)&entry, sizeof(entry), 1, killf) != 1) goto err;
- if (header.ckh_pattern_size <= entry.ck_pattern_index ||
+ long ckh_magic;
+ time_t ckh_db_check;
+- off_t ckh_pattern_offset;
++ long ckh_pattern_offset;
+ long ckh_pattern_size;
+ long ckh_entries;
+ long ckh_regexp_size;