summaryrefslogtreecommitdiffstats
path: root/sysutils/heirloom
diff options
context:
space:
mode:
authorvd <vd@FreeBSD.org>2006-02-07 10:44:12 +0000
committervd <vd@FreeBSD.org>2006-02-07 10:44:12 +0000
commite0a665dc591c74050f8a47df7a217d2b996db71a (patch)
treeee8707f8692686c4b6bdf43e3b5b8114276561eb /sysutils/heirloom
parenteb6220fa3925322ce1b19c830e02ff73fec24cc6 (diff)
downloadFreeBSD-ports-e0a665dc591c74050f8a47df7a217d2b996db71a.zip
FreeBSD-ports-e0a665dc591c74050f8a47df7a217d2b996db71a.tar.gz
Fix amd64 build
PR: ports/92658 Submitted by: Jeffrey H. Johnson <CPE1704TKS@bellsouth.net> Reworked by: vd Approved by: garga (mentor)
Diffstat (limited to 'sysutils/heirloom')
-rw-r--r--sysutils/heirloom/files/patch-spell_spellin.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/sysutils/heirloom/files/patch-spell_spellin.c b/sysutils/heirloom/files/patch-spell_spellin.c
new file mode 100644
index 0000000..eb45031
--- /dev/null
+++ b/sysutils/heirloom/files/patch-spell_spellin.c
@@ -0,0 +1,20 @@
+--- spell/spellin.c.orig Fri Feb 3 19:13:19 2006
++++ spell/spellin.c Fri Feb 3 19:19:20 2006
+@@ -77,6 +77,7 @@
+ main(int argc, char **argv)
+ {
+ int32_t h, k, d;
++ unsigned hu;
+ int32_t i;
+ int32_t count;
+ int32_t w1;
+@@ -103,7 +104,8 @@
+ z = huff((1L<<HASHWIDTH)/atof(argv[1]));
+ fprintf(stderr, "%s: expected code widths = %f\n",
+ argv[0], z);
+- for (count = 0; scanf("%lo", (long *)&h) == 1; ++count) {
++ for (count = 0; scanf("%o", &hu) == 1; ++count) {
++ h = (int32_t)hu;
+ if ((t = h >> (HASHWIDTH - INDEXWIDTH)) != u) {
+ if (bp != B)
+ wp++;
OpenPOWER on IntegriCloud