summaryrefslogtreecommitdiffstats
path: root/rfbserver.c
diff options
context:
space:
mode:
authordscho <dscho>2003-08-06 15:12:49 +0000
committerdscho <dscho>2003-08-06 15:12:49 +0000
commit4fcb60871bb33d48e68bbd8f40a84aa4cfa2c805 (patch)
treece851972d9b71807b4e84e004d9d1356c3d002cb /rfbserver.c
parent79c414ab99d16b92e6436388cfb9f70f7c04ccde (diff)
downloadlibtdevnc-4fcb60871bb33d48e68bbd8f40a84aa4cfa2c805.tar.gz
libtdevnc-4fcb60871bb33d48e68bbd8f40a84aa4cfa2c805.zip
rfbErr introduced
Diffstat (limited to 'rfbserver.c')
-rw-r--r--rfbserver.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/rfbserver.c b/rfbserver.c
index c21df14..2644ee7 100644
--- a/rfbserver.c
+++ b/rfbserver.c
@@ -521,7 +521,7 @@ rfbProcessClientProtocolVersion(cl)
if (sscanf(pv,rfbProtocolVersionFormat,&major_,&minor_) != 2) {
char name[1024];
if(sscanf(pv,"RFB %03d.%03d %1024s\n",&major_,&minor_,name) != 3) {
- rfbLog("rfbProcessClientProtocolVersion: not a valid RFB client\n");
+ rfbErr("rfbProcessClientProtocolVersion: not a valid RFB client\n");
rfbCloseClient(cl);
return;
}
@@ -533,7 +533,7 @@ rfbProcessClientProtocolVersion(cl)
if (major_ != rfbProtocolMajorVersion) {
/* Major version mismatch - send a ConnFailed message */
- rfbLog("Major version mismatch\n");
+ rfbErr("Major version mismatch\n");
sprintf(failureReason,
"RFB protocol version mismatch - server %d.%d, client %d.%d",
rfbProtocolMajorVersion,rfbProtocolMinorVersion,major_,minor_);
@@ -1448,7 +1448,7 @@ rfbSendRectEncodingRaw(cl, x, y, w, h)
nlines = (UPDATE_BUF_SIZE - cl->ublen) / bytesPerLine;
if (nlines == 0) {
- rfbLog("rfbSendRectEncodingRaw: send buffer too small for %d "
+ rfbErr("rfbSendRectEncodingRaw: send buffer too small for %d "
"bytes per line\n", bytesPerLine);
rfbCloseClient(cl);
return FALSE;
@@ -1698,7 +1698,7 @@ rfbProcessUDPInput(rfbScreenInfoPtr rfbScreen)
case rfbKeyEvent:
if (n != sz_rfbKeyEventMsg) {
- rfbLog("rfbProcessUDPInput: key event incorrect length\n");
+ rfbErr("rfbProcessUDPInput: key event incorrect length\n");
rfbDisconnectUDPSock(rfbScreen);
return;
}
@@ -1707,7 +1707,7 @@ rfbProcessUDPInput(rfbScreenInfoPtr rfbScreen)
case rfbPointerEvent:
if (n != sz_rfbPointerEventMsg) {
- rfbLog("rfbProcessUDPInput: ptr event incorrect length\n");
+ rfbErr("rfbProcessUDPInput: ptr event incorrect length\n");
rfbDisconnectUDPSock(rfbScreen);
return;
}
@@ -1716,7 +1716,7 @@ rfbProcessUDPInput(rfbScreenInfoPtr rfbScreen)
break;
default:
- rfbLog("rfbProcessUDPInput: unknown message type %d\n",
+ rfbErr("rfbProcessUDPInput: unknown message type %d\n",
msg.type);
rfbDisconnectUDPSock(rfbScreen);
}