echosrv.c: fix format '%ld' expects argument of type 'long int', but argument 3 has type 'ssize_t' {aka 'int'}

Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
This commit is contained in:
Sergey Ponomarev authored and Yves Rutschle committed 2024-05-25 16:21:50 +02:00
1 parent 8166be1a09
commit 799d75413f
1 file changed
+1 -1
+1 -1
View File
@@ -163,7 +163,7 @@ void udp_echo(struct listen_endpoint* listen_socket)
perror("recvfrom");
}
*(data + prefix_len + len) = 0;
fprintf(stderr, "%ld: %s\n", len, data + prefix_len);
fprintf(stderr, "%zd %s\n", len, data + prefix_len);
print_udp_xchange(listen_socket->socketfd, &src_addr, addrlen);