Skip to content

Commit

Permalink
echosrv.c: fix format '%ld' expects argument of type 'long int', but …
Browse files Browse the repository at this point in the history
…argument 3 has type 'ssize_t' {aka 'int'}

Signed-off-by: Sergey Ponomarev <[email protected]>
  • Loading branch information
stokito authored and yrutschle committed May 25, 2024
1 parent 8166be1 commit 799d754
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion echosrv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 799d754

Please sign in to comment.