From 1995188db0d4a9628ec200282bbca4bc914199df Mon Sep 17 00:00:00 2001 From: Bjorn Andersson Date: Wed, 14 Jan 2026 17:38:20 -0600 Subject: [PATCH] tftp: Fix block buffer signedness warning The buffer type differs in signedness (buffer is unsigned, local pointer is signed), resulting in build warnings even with default settings. Correct the local type to fix the warnings. Signed-off-by: Bjorn Andersson --- tqftpserv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tqftpserv.c b/tqftpserv.c index 9f7c15b..045566b 100644 --- a/tqftpserv.c +++ b/tqftpserv.c @@ -62,8 +62,8 @@ static ssize_t tftp_send_data(struct tftp_client *client, { ssize_t len; size_t send_len; - char *buf = client->blk_buf; - char *p = buf; + uint8_t *buf = client->blk_buf; + uint8_t *p = buf; *p++ = 0; *p++ = OP_DATA;