summaryrefslogtreecommitdiffstats
path: root/example.c
diff options
context:
space:
mode:
Diffstat (limited to 'example.c')
-rw-r--r--example.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/example.c b/example.c
index a3cfba9..41165c7 100644
--- a/example.c
+++ b/example.c
@@ -67,10 +67,11 @@ void clientgone(rfbClientPtr cl)
free(cl->clientData);
}
-void newclient(rfbClientPtr cl)
+enum rfbNewClientAction newclient(rfbClientPtr cl)
{
cl->clientData = (void*)calloc(sizeof(ClientData),1);
cl->clientGoneHook = clientgone;
+ return RFB_CLIENT_ACCEPT;
}
/* aux function to draw a line */