diff options
author | dscho <dscho> | 2002-04-23 11:20:47 +0000 |
---|---|---|
committer | dscho <dscho> | 2002-04-23 11:20:47 +0000 |
commit | fd2931c0ed7f0b4d126b142106e7a7197f43e4e3 (patch) | |
tree | 5dcba125d8a4c9feed9d1288080221e7b8e94d9c /mac.c | |
parent | a73243f8c236d9807644ca34cddbe78fbef87402 (diff) | |
download | libtdevnc-fd2931c0ed7f0b4d126b142106e7a7197f43e4e3.tar.gz libtdevnc-fd2931c0ed7f0b4d126b142106e7a7197f43e4e3.zip |
OSXvnc-server compile fixes
Diffstat (limited to 'mac.c')
-rw-r--r-- | mac.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -225,7 +225,7 @@ static int keyTable[] = { }; void -KbdAddEvent(Bool down, KeySym keySym, struct rfbClientRec* cl) +KbdAddEvent(Bool down, KeySym keySym, struct _rfbClientRec* cl) { int i; CGKeyCode keyCode = -1; @@ -349,7 +349,7 @@ void clientGone(rfbClientPtr cl) exit(0); } -void newClient(rfbClientPtr cl) +enum rfbNewClientAction newClient(rfbClientPtr cl) { if(startTime>0 && time(0)>startTime+maxSecsToConnect) exit(0); @@ -358,6 +358,8 @@ void newClient(rfbClientPtr cl) cl->clientGoneHook = clientGone; cl->clientData=(void*)((viewOnly)?-1:0); + + return(RFB_CLIENT_ACCEPT); } int main(int argc,char *argv[]) |