Change accept type to struct sockaddr * (#630)

This commit is contained in:
Gavin Hayes 2022-09-20 10:49:16 -04:00 committed by GitHub
parent 8c2bf341e9
commit 87708c5d6e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 12 additions and 10 deletions

View file

@ -167,7 +167,7 @@ void *Worker(void *id) {
// wait for client connection
clientaddrsize = sizeof(clientaddr);
client = accept(server, &clientaddr, &clientaddrsize);
client = accept(server, (struct sockaddr *)&clientaddr, &clientaddrsize);
// accept() can raise a very diverse number of errors but none of
// them are really true showstoppers that would necessitate us to