mirror of
https://github.com/linux-msm/tqftpserv.git
synced 2026-02-25 13:12:17 -08:00
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 <bjorn.andersson@oss.qualcomm.com>
This commit is contained in:
committed by
Bjorn Andersson
parent
443c82aada
commit
1995188db0
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user