From b5f6720f887851c39d3d6ee60ce1cb865274658a Mon Sep 17 00:00:00 2001 From: Simon Goldschmidt Date: Tue, 10 Oct 2023 20:39:45 +0200 Subject: [PATCH] apps/tftp: fix compiling for 64-bit --- src/apps/tftp/tftp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/tftp/tftp.c b/src/apps/tftp/tftp.c index ddfdbfc0..aab1d9ce 100644 --- a/src/apps/tftp/tftp.c +++ b/src/apps/tftp/tftp.c @@ -157,7 +157,7 @@ send_request(const ip_addr_t *addr, u16_t port, u16_t opcode, const char* fname, static err_t send_error(const ip_addr_t *addr, u16_t port, enum tftp_error code, const char *str) { - int str_length = strlen(str); + size_t str_length = strlen(str); struct pbuf *p; u16_t *payload; err_t ret;