diff options
author | dogcow <dogcow@pkgsrc.org> | 2006-12-12 03:37:30 +0000 |
---|---|---|
committer | dogcow <dogcow@pkgsrc.org> | 2006-12-12 03:37:30 +0000 |
commit | 6687c8d8036bfe764a5212414994a684d284645f (patch) | |
tree | 4b83ab9a5d8b230c5b0ef2934fc7412b9ea26f46 /editors/nvi/patches/patch-ai | |
parent | 68bbe6d1beec427c163b6bf21ea20dc263274879 (diff) | |
download | pkgsrc-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-ai | 23 |
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)); |