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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user