warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] ...if ((newfd = accept(sockfd, (struct sockaddr *) &client, &len)) < 0) {
//int len; unsigned len;
intをunsignedにしたらでなくなった。