summaryrefslogtreecommitdiff
path: root/editors/nvi/patches/patch-ai
diff options
context:
space:
mode:
authordogcow <dogcow@pkgsrc.org>2006-12-12 03:37:30 +0000
committerdogcow <dogcow@pkgsrc.org>2006-12-12 03:37:30 +0000
commit6687c8d8036bfe764a5212414994a684d284645f (patch)
tree4b83ab9a5d8b230c5b0ef2934fc7412b9ea26f46 /editors/nvi/patches/patch-ai
parent68bbe6d1beec427c163b6bf21ea20dc263274879 (diff)
downloadpkgsrc-6687c8d8036bfe764a5212414994a684d284645f.tar.gz
Patches to avoid lvalue casting. Fixes PR/35179 and issues with gcc4.
No new functionality.
Diffstat (limited to 'editors/nvi/patches/patch-ai')
-rw-r--r--editors/nvi/patches/patch-ai23
1 files changed, 23 insertions, 0 deletions
diff --git a/editors/nvi/patches/patch-ai b/editors/nvi/patches/patch-ai
new file mode 100644
index 00000000000..74f04c71049
--- /dev/null
+++ b/editors/nvi/patches/patch-ai
@@ -0,0 +1,23 @@
+$NetBSD: patch-ai,v 1.1 2006/12/12 03:37:30 dogcow Exp $
+
+--- ../common/db.c.orig 2001-08-19 07:52:00.000000000 +1000
++++ ../common/db.c 2006-12-03 15:21:22.000000000 +1000
+@@ -94,6 +94,7 @@
+ CHAR_T *wp;
+ size_t wlen;
+ size_t nlen;
++ char *c_lp;
+
+ /*
+ * The underlying recno stuff handles zero by returning NULL, but
+@@ -164,7 +165,9 @@
+ nlen = 1024;
+ retry:
+ /* data.size contains length in bytes */
+- BINC_GOTO(sp, (char *)ep->c_lp, ep->c_blen, nlen);
++ c_lp = (char *) ep->c_lp;
++ BINC_GOTO(sp, c_lp, ep->c_blen, nlen);
++ ep->c_lp = (CHAR_T *) c_lp;
+
+ /* Get the line from the underlying database. */
+ memset(&key, 0, sizeof(key));