summaryrefslogtreecommitdiffstats
path: root/translate.c
diff options
context:
space:
mode:
authordscho <dscho>2001-10-02 23:04:35 +0000
committerdscho <dscho>2001-10-02 23:04:35 +0000
commit130ae151d118378e5765713581283728fdfb3e20 (patch)
treebab24fff19df5bbee50a7aeec32c1f7b8632c3fc /translate.c
parentb8c6f3b18832a48279e4c60f40cf36407d3b768c (diff)
downloadlibtdevnc-130ae151d118378e5765713581283728fdfb3e20.tar.gz
libtdevnc-130ae151d118378e5765713581283728fdfb3e20.zip
no more compile warnings, pthread final(?) fixes
Diffstat (limited to 'translate.c')
-rw-r--r--translate.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/translate.c b/translate.c
index 59128a5..5efc52c 100644
--- a/translate.c
+++ b/translate.c
@@ -449,12 +449,13 @@ rfbSetClientColourMaps(rfbScreen, firstColour, nColours)
int firstColour;
int nColours;
{
- rfbClientPtr cl, nextCl;
+ rfbClientIteratorPtr i;
+ rfbClientPtr cl;
- for (cl = rfbScreen->rfbClientHead; cl; cl = nextCl) {
- nextCl = cl->next;
- rfbSetClientColourMap(cl, firstColour, nColours);
- }
+ i = rfbGetClientIterator(rfbScreen);
+ while((cl = rfbClientIteratorNext(i)))
+ rfbSetClientColourMap(cl, firstColour, nColours);
+ rfbReleaseClientIterator(i);
}
static void