summaryrefslogtreecommitdiffstats
path: root/x11vnc/xevents.c
diff options
context:
space:
mode:
authorrunge <runge>2007-03-25 02:43:00 +0000
committerrunge <runge>2007-03-25 02:43:00 +0000
commit3f0f799d2050ec046c28a54b027b377cf573ef9e (patch)
tree2a492e6373397ae0a8d535150a7fc8a6923322ec /x11vnc/xevents.c
parentca56c41c9c59048167e46073043d2fcd3db305de (diff)
downloadlibtdevnc-3f0f799d2050ec046c28a54b027b377cf573ef9e.tar.gz
libtdevnc-3f0f799d2050ec046c28a54b027b377cf573ef9e.zip
x11vnc: remove build errors, get -ncache working on macosx again.
Diffstat (limited to 'x11vnc/xevents.c')
-rw-r--r--x11vnc/xevents.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/x11vnc/xevents.c b/x11vnc/xevents.c
index f69588e..3126a56 100644
--- a/x11vnc/xevents.c
+++ b/x11vnc/xevents.c
@@ -16,6 +16,8 @@
#include "macosx.h"
#include "screen.h"
#include "pm.h"
+#include "pointer.h"
+#include "remote.h"
/* XXX CHECK BEFORE RELEASE */
int grab_buster = 0;
@@ -1373,7 +1375,6 @@ void set_server_input(rfbClientPtr cl, int grab) {
#endif
}
void set_text_chat(rfbClientPtr cl, int len, char *txt) {
- char buf[100];
int dochat = 1;
rfbClientIteratorPtr iter;
rfbClientPtr cl2;
@@ -1393,14 +1394,15 @@ void set_text_chat(rfbClientPtr cl, int len, char *txt) {
}
iter = rfbGetClientIterator(screen);
while( (cl2 = rfbClientIteratorNext(iter)) ) {
+ unsigned int ulen = (unsigned int) len;
if (cl2 == cl) {
continue;
}
- if (len == rfbTextChatOpen) {
+ if (ulen == rfbTextChatOpen) {
rfbSendTextChatMessage(cl2, rfbTextChatOpen, "");
- } else if (len == rfbTextChatClose) {
+ } else if (ulen == rfbTextChatClose) {
rfbSendTextChatMessage(cl2, rfbTextChatClose, "");
- } else if (len == rfbTextChatFinished) {
+ } else if (ulen == rfbTextChatFinished) {
rfbSendTextChatMessage(cl2, rfbTextChatFinished, "");
} else if (len <= rfbTextMaxSize) {
rfbSendTextChatMessage(cl2, len, txt);
@@ -1410,6 +1412,7 @@ void set_text_chat(rfbClientPtr cl, int len, char *txt) {
}
int get_keyboard_led_state_hook(rfbScreenInfoPtr s) {
+ if (s) {}
if (unixpw_in_progress) {
rfbLog("get_keyboard_led_state_hook: unixpw_in_progress, skipping.\n");
return 0;