summaryrefslogtreecommitdiffstats
path: root/libvncserver
diff options
context:
space:
mode:
Diffstat (limited to 'libvncserver')
-rw-r--r--libvncserver/rfbserver.c4
-rw-r--r--libvncserver/websockets.c5
2 files changed, 4 insertions, 5 deletions
diff --git a/libvncserver/rfbserver.c b/libvncserver/rfbserver.c
index e18f31d..316f5ba 100644
--- a/libvncserver/rfbserver.c
+++ b/libvncserver/rfbserver.c
@@ -228,9 +228,7 @@ void
rfbNewClientConnection(rfbScreenInfoPtr rfbScreen,
int sock)
{
- rfbClientPtr cl;
-
- cl = rfbNewClient(rfbScreen,sock);
+ rfbNewClient(rfbScreen,sock);
}
diff --git a/libvncserver/websockets.c b/libvncserver/websockets.c
index 425bc15..8cd96d3 100644
--- a/libvncserver/websockets.c
+++ b/libvncserver/websockets.c
@@ -622,7 +622,8 @@ webSocketsDecodeHybi(rfbClientPtr cl, char *dst, int len)
int i;
unsigned char opcode;
ws_ctx_t *wsctx = (ws_ctx_t *)cl->wsctx;
- int flength, fin, fhlen;
+ int flength, fhlen;
+ /* int fin; */ /* not used atm */
// rfbLog(" <== %s[%d]: %d cl: %p, wsctx: %p-%p (%d)\n", __func__, gettid(), len, cl, wsctx, (char *)wsctx + sizeof(ws_ctx_t), sizeof(ws_ctx_t));
@@ -662,7 +663,7 @@ webSocketsDecodeHybi(rfbClientPtr cl, char *dst, int len)
}
opcode = header->b0 & 0x0f;
- fin = (header->b0 & 0x80) >> 7;
+ /* fin = (header->b0 & 0x80) >> 7; */ /* not used atm */
flength = header->b1 & 0x7f;
/*