1
0
mirror of https://github.com/p2r3/bareiron.git synced 2025-10-02 07:35:08 +02:00

fix various compilation issues when targeting esp-idf

This commit is contained in:
p2r3
2025-09-19 02:24:36 +03:00
parent a631de77b5
commit 516a00f122
3 changed files with 6 additions and 6 deletions

View File

@@ -221,7 +221,7 @@ double readDouble (int client_fd) {
ssize_t readLengthPrefixedData (int client_fd) {
uint32_t length = readVarInt(client_fd);
if (length >= MAX_RECV_BUF_LEN) {
printf("ERROR: Received length (%u) exceeds maximum (%u)\n", length, MAX_RECV_BUF_LEN);
printf("ERROR: Received length (%lu) exceeds maximum (%u)\n", length, MAX_RECV_BUF_LEN);
disconnectClient(&client_fd, -1);
recv_count = 0;
return 0;