1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-14 23:46:10 +00:00
freebsd-ports/japanese/iv/files/patch-bt
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

17 lines
582 B
Plaintext

--- src/lib/IV-X11/xdrag.c.org Sat Nov 14 14:14:37 1992
+++ src/lib/IV-X11/xdrag.c Mon Jan 3 14:44:07 2000
@@ -230,11 +230,12 @@
XWindow *children;
unsigned int kids;
Status status;
+ int i;
status = XQueryTree(display, root, &root, &parent, &children, &kids);
if (status == 0) {
return None;
}
- for (int i = kids - 1; i >= 0 && children[i] != under ; --i);
+ for (i = kids - 1; i >= 0 && children[i] != under ; --i);
for (--i; i >= 0; --i) {
XWindowAttributes attributes;
XGetWindowAttributes(display, children[i], &attributes);