Mercurial > dropbear
comparison tcp-accept.c @ 276:3cea9d789cca
Stomp on some minor warnings
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 08 Mar 2006 12:09:02 +0000 |
parents | c049490e43fe |
children | 454a34b2dfd1 6aea2cfc113e |
comparison
equal
deleted
inserted
replaced
266:e37b160c414c | 276:3cea9d789cca |
---|---|
45 | 45 |
46 static void tcp_acceptor(struct Listener *listener, int sock) { | 46 static void tcp_acceptor(struct Listener *listener, int sock) { |
47 | 47 |
48 int fd; | 48 int fd; |
49 struct sockaddr_storage addr; | 49 struct sockaddr_storage addr; |
50 int len; | 50 socklen_t len; |
51 char ipstring[NI_MAXHOST], portstring[NI_MAXSERV]; | 51 char ipstring[NI_MAXHOST], portstring[NI_MAXSERV]; |
52 struct TCPListener *tcpinfo = (struct TCPListener*)(listener->typedata); | 52 struct TCPListener *tcpinfo = (struct TCPListener*)(listener->typedata); |
53 | 53 |
54 len = sizeof(addr); | 54 len = sizeof(addr); |
55 | 55 |