summaryrefslogtreecommitdiffstats
path: root/src/libirecovery.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2023-11-18 00:12:55 +0100
committerGravatar Nikias Bassen2023-11-18 00:12:55 +0100
commit1535d99933d3c31c651cdf03c659d8ef0708291a (patch)
treeafd719bf8a628e96c9899c42856891f6c75188c8 /src/libirecovery.c
parent479b1b103746e404b125b6a9a0c26abfe0b6a74c (diff)
downloadlibirecovery-1535d99933d3c31c651cdf03c659d8ef0708291a.tar.gz
libirecovery-1535d99933d3c31c651cdf03c659d8ef0708291a.tar.bz2
Mark irecv_kis_send_buffer static and silence a compiler warning
Diffstat (limited to 'src/libirecovery.c')
-rw-r--r--src/libirecovery.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libirecovery.c b/src/libirecovery.c
index e5369ce..d5e8e73 100644
--- a/src/libirecovery.c
+++ b/src/libirecovery.c
@@ -3135,13 +3135,13 @@ static irecv_error_t irecv_get_status(irecv_client_t client, unsigned int* statu
}
#endif
-irecv_error_t irecv_kis_send_buffer(irecv_client_t client, unsigned char* buffer, unsigned long length, int dfu_notify_finished)
+static irecv_error_t irecv_kis_send_buffer(irecv_client_t client, unsigned char* buffer, unsigned long length, int dfu_notify_finished)
{
if (client->mode != IRECV_K_DFU_MODE) {
return IRECV_E_UNSUPPORTED;
}
- size_t origLen = length;
+ unsigned long origLen = length;
KIS_upload_chunk *chunk = calloc(1, sizeof(KIS_upload_chunk));
uint64_t address = 0;