summaryrefslogtreecommitdiffstats
path: root/examples/vncev.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/vncev.c')
-rw-r--r--examples/vncev.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/vncev.c b/examples/vncev.c
index ba9441a..b185746 100644
--- a/examples/vncev.c
+++ b/examples/vncev.c
@@ -99,7 +99,8 @@ static enum rfbNewClientAction newclient(rfbClientPtr cl)
{
char buffer[1024];
struct sockaddr_in addr;
- unsigned int len=sizeof(addr),ip;
+ socklen_t len=sizeof(addr);
+ unsigned int ip;
getpeername(cl->sock,(struct sockaddr*)&addr,&len);
ip=ntohl(addr.sin_addr.s_addr);