1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-05 22:43:24 +00:00
freebsd-ports/japanese/iv/files/patch-bu
Shigeyuki Fukushima d0094e951a Fix build error under 4-current and new egcs/C++ compiler.
PR:		ports/16024
Submitted by:	MIHIRA Yoshiro <sanpei@sanpei.org>
2000-01-11 15:52:35 +00:00

20 lines
635 B
Plaintext

--- src/bin/doc/Keymap.c.org Sat Apr 11 14:29:37 1992
+++ src/bin/doc/Keymap.c Mon Jan 3 14:45:40 2000
@@ -103,6 +103,7 @@
_viewer != nil
&& e.type() == Event::key && e.mapkey(s, sizeof(s)) > 0
) {
+ long i;
_viewer->ref();
ItemView* view = _viewer->focus();
long count = _info->count();
@@ -110,7 +111,7 @@
if (key < 0) {
key += 256;
}
- for (long i = 0; i < count; ++i) {
+ for (i = 0; i < count; ++i) {
DocKeymapInfo& info = _info->item_ref(i);
if (info._key == key) {
boolean pending_repair;