diff options
author | dscho <dscho> | 2002-08-19 10:41:11 +0000 |
---|---|---|
committer | dscho <dscho> | 2002-08-19 10:41:11 +0000 |
commit | 598c460ceb842d0cf9df89f93642a1594f35b993 (patch) | |
tree | 6dc08fdcc2a9065fb9f75e759b725c1cf7c372e0 /rfbserver.c | |
parent | fde8958dc5e4e226a76ae0a26d751b6f185cf7ee (diff) | |
download | libtdevnc-598c460ceb842d0cf9df89f93642a1594f35b993.tar.gz libtdevnc-598c460ceb842d0cf9df89f93642a1594f35b993.zip |
unwarn compilation
Diffstat (limited to 'rfbserver.c')
-rw-r--r-- | rfbserver.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/rfbserver.c b/rfbserver.c index f2dfada..bfc2e91 100644 --- a/rfbserver.c +++ b/rfbserver.c @@ -25,6 +25,7 @@ #include <stdio.h> #include <stdlib.h> +#include <string.h> #include "rfb.h" #include "sraRegion.h" #ifdef WIN32 @@ -76,7 +77,9 @@ void rfbIncrClientRef(rfbClientPtr cl) {} void rfbDecrClientRef(rfbClientPtr cl) {} #endif +#ifdef HAVE_PTHREADS MUTEX(rfbClientListMutex); +#endif struct rfbClientIterator { rfbClientPtr next; @@ -86,6 +89,11 @@ struct rfbClientIterator { void rfbClientListInit(rfbScreenInfoPtr rfbScreen) { + if(sizeof(Bool)!=1) { + /* a sanity check */ + fprintf(stderr,"Bool's size is not 1 (%d)!\n",sizeof(Bool)); + exit(1); + } rfbScreen->rfbClientHead = NULL; INIT_MUTEX(rfbClientListMutex); } |