Resolve compiler warnings for regression tests

This commit is contained in:
Ruihan Li
2024-03-16 00:40:17 +08:00
committed by Tate, Hongliang Tian
parent 42881bcdaa
commit dede22843a
8 changed files with 13 additions and 13 deletions

View File

@ -10,7 +10,7 @@
int main()
{
int server_fd, new_socket, valread;
int server_fd, new_socket;
struct sockaddr_in address;
int opt = 1;
int addrlen = sizeof(address);
@ -60,7 +60,7 @@ int main()
}
// Read the message from the client and reply
valread = read(new_socket, buffer, 1024);
read(new_socket, buffer, 1024);
printf("Client: %s\n", buffer);
send(new_socket, hello, strlen(hello), 0);
printf("Hello message sent\n");