mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-22 00:43:24 +00:00
Resolve compiler warnings for regression tests
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
42881bcdaa
commit
dede22843a
@ -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");
|
||||
|
Reference in New Issue
Block a user