summaryrefslogtreecommitdiffstats
path: root/x11
diff options
context:
space:
mode:
authorkrion <krion@FreeBSD.org>2005-01-08 10:45:44 +0000
committerkrion <krion@FreeBSD.org>2005-01-08 10:45:44 +0000
commite5485f4af4eba64c192b96fab87f3d24caa53f1d (patch)
tree6aad2ef9399ad33e56f7a496d8eaf76e97a4fc3e /x11
parent4f962cae1802ab74f3c857df223fb624010f8762 (diff)
downloadFreeBSD-ports-e5485f4af4eba64c192b96fab87f3d24caa53f1d.zip
FreeBSD-ports-e5485f4af4eba64c192b96fab87f3d24caa53f1d.tar.gz
Fix build on amd64.
Diffstat (limited to 'x11')
-rw-r--r--x11/xbelld/files/patch-xbelld.c32
1 files changed, 32 insertions, 0 deletions
diff --git a/x11/xbelld/files/patch-xbelld.c b/x11/xbelld/files/patch-xbelld.c
new file mode 100644
index 0000000..280dee3
--- /dev/null
+++ b/x11/xbelld/files/patch-xbelld.c
@@ -0,0 +1,32 @@
+
+$FreeBSD$
+
+--- xbelld.c.orig
++++ xbelld.c
+@@ -268,7 +268,7 @@
+ u_int i;
+
+ if (!hp->h_size)
+- return NULL;
++ return False;
+ i = hp->h_hash(data) % hp->h_size;
+ if (!TAILQ_EMPTY(&(hp->h_buckets[i])))
+ {
+@@ -914,7 +914,7 @@
+ close(dfd);
+ for (nent = 0, dep = (struct dirent *)dbuf;
+ (char *)dep - dbuf < nb;
+- ++nent, (char *)dep+= dep->d_reclen)
++ ++nent, dep+= dep->d_reclen)
+ ;
+ _hash_resize(&(_bd.bd_sndhash), nent * 2);
+ if (_bd.bd_defsnd)
+@@ -924,7 +924,7 @@
+ }
+ for (dep = (struct dirent *)dbuf;
+ (char *)dep - dbuf < nb;
+- (char *)dep+= dep->d_reclen)
++ dep+= dep->d_reclen)
+ {
+ char *suf;
+ static const char *sufs[] = AUDIO_SUFS;
OpenPOWER on IntegriCloud