summaryrefslogtreecommitdiffstats
path: root/examples/vncev.c
diff options
context:
space:
mode:
authorChristian Beier <dontmind@freeshell.org>2011-03-17 14:43:55 +0100
committerChristian Beier <dontmind@freeshell.org>2011-03-17 14:43:55 +0100
commitfe1ca16e9b75b5f38ab374c8dfff92d2c3ea4532 (patch)
tree8539521ed668d65f6dbd59c491bc9565bce6e8cb /examples/vncev.c
parent56234cd0b656de3c8827288f2adf78c9cb12d0c5 (diff)
downloadlibtdevnc-fe1ca16e9b75b5f38ab374c8dfff92d2c3ea4532.tar.gz
libtdevnc-fe1ca16e9b75b5f38ab374c8dfff92d2c3ea4532.zip
Fix (most) MinGW32 compiler warnings.
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);