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 sock = 0, valread;
int sock = 0;
struct sockaddr_in serv_addr;
char *hello = "Hello from client";
char buffer[1024] = { 0 };
@ -40,7 +40,7 @@ int main()
// Send message to the server and receive the reply
send(sock, hello, strlen(hello), 0);
printf("Hello message sent\n");
valread = read(sock, buffer, 1024);
read(sock, buffer, 1024);
printf("Server: %s\n", buffer);
return 0;
}