diff options
author | Christian Beier <dontmind@freeshell.org> | 2011-03-17 14:43:55 +0100 |
---|---|---|
committer | Christian Beier <dontmind@freeshell.org> | 2011-03-17 14:43:55 +0100 |
commit | fe1ca16e9b75b5f38ab374c8dfff92d2c3ea4532 (patch) | |
tree | 8539521ed668d65f6dbd59c491bc9565bce6e8cb /examples/vncev.c | |
parent | 56234cd0b656de3c8827288f2adf78c9cb12d0c5 (diff) | |
download | libtdevnc-fe1ca16e9b75b5f38ab374c8dfff92d2c3ea4532.tar.gz libtdevnc-fe1ca16e9b75b5f38ab374c8dfff92d2c3ea4532.zip |
Fix (most) MinGW32 compiler warnings.
Diffstat (limited to 'examples/vncev.c')
-rw-r--r-- | examples/vncev.c | 3 |
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); |