echosrv.c: Fix Narrowing conversion from 'ssize_t' (aka 'long') to signed type 'int' is implementation-defined

This commit is contained in:
Sergey Ponomarev 2024-04-09 23:37:45 +03:00 committed by Yves Rutschle
parent 31c9e19abb
commit 9286b55702

View File

@ -62,9 +62,10 @@ void check_res_dump(int res, struct addrinfo *addr, char* syscall)
void start_echo(int fd)
{
int res;
ssize_t res;
char buffer[1 << 20];
int ret, prefix_len;
ssize_t ret;
size_t prefix_len;
int first = 1;
prefix_len = strlen(cfg.prefix);