summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authordscho <dscho>2001-11-18 21:58:58 +0000
committerdscho <dscho>2001-11-18 21:58:58 +0000
commite0168dbd9ae5e598f6564aa811cdb252330524c1 (patch)
tree31e899f132a91910c7a0090803a225bc6e9cfbfb /main.c
parent4415df9540afd86671f9169c1542536c71000180 (diff)
downloadlibtdevnc-e0168dbd9ae5e598f6564aa811cdb252330524c1.tar.gz
libtdevnc-e0168dbd9ae5e598f6564aa811cdb252330524c1.zip
start x11vnc, an x0rfbserver clone
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/main.c b/main.c
index f406918..9f697d7 100644
--- a/main.c
+++ b/main.c
@@ -34,6 +34,8 @@
MUTEX(logMutex);
+char rfbEndianTest = (_BYTE_ORDER == _LITTLE_ENDIAN);
+
/*
* rfbLog prints a time-stamped message to the log file (stderr).
*/
@@ -580,6 +582,9 @@ rfbProcessEvents(rfbScreenInfoPtr rfbScreen,long usec)
rfbClientPtr cl,clPrev;
struct timeval tv;
+ if(usec<0)
+ usec=rfbScreen->rfbDeferUpdateTime*1000;
+
rfbCheckFds(rfbScreen,usec);
httpCheckFds(rfbScreen);
#ifdef CORBA