select_tut.2: Use correct type (socklen_t) for addrlen

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2016-02-03 14:34:37 +01:00
parent 5bb9aa4e0c
commit 894d620ae2
1 changed files with 1 additions and 1 deletions

View File

@ -704,7 +704,7 @@ main(int argc, char *argv[])
}
if (FD_ISSET(h, &readfds)) {
unsigned int addrlen;
socklen_t addrlen;
struct sockaddr_in client_addr;
int fd;