From ebc94b3e03432024da9d67042007dae66abf9d1a Mon Sep 17 00:00:00 2001 From: pvalchev Date: Thu, 12 Dec 2002 20:08:39 +0000 Subject: [PATCH] getc() returns int, not char - especially avoid problem on arches where 'char' is unsigned and error returned; ok dugsong millert --- databases/gnats/patches/patch-gnats_pr_c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 databases/gnats/patches/patch-gnats_pr_c diff --git a/databases/gnats/patches/patch-gnats_pr_c b/databases/gnats/patches/patch-gnats_pr_c new file mode 100644 index 00000000000..d07de66698d --- /dev/null +++ b/databases/gnats/patches/patch-gnats_pr_c @@ -0,0 +1,12 @@ +$OpenBSD: patch-gnats_pr_c,v 1.1 2002/12/12 20:08:39 pvalchev Exp $ +--- gnats/pr.c.orig Thu Dec 12 00:55:26 2002 ++++ gnats/pr.c Thu Dec 12 00:56:30 2002 +@@ -367,7 +367,7 @@ get_pr_enum_field (filename, default_val + int len = 0, capacity = 80; + int meaningful_line; + FILE *fp; +- char c; ++ int c; + + sprintf (path, "%s/gnats-adm/%s", gnats_root, filename); + fp = fopen (path, "r");