diff options
author | 2023-11-18 00:12:55 +0100 | |
---|---|---|
committer | 2023-11-18 00:12:55 +0100 | |
commit | 1535d99933d3c31c651cdf03c659d8ef0708291a (patch) | |
tree | afd719bf8a628e96c9899c42856891f6c75188c8 /src/libirecovery.c | |
parent | 479b1b103746e404b125b6a9a0c26abfe0b6a74c (diff) | |
download | libirecovery-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.c | 4 |
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 | |||
3135 | } | 3135 | } |
3136 | #endif | 3136 | #endif |
3137 | 3137 | ||
3138 | irecv_error_t irecv_kis_send_buffer(irecv_client_t client, unsigned char* buffer, unsigned long length, int dfu_notify_finished) | 3138 | static irecv_error_t irecv_kis_send_buffer(irecv_client_t client, unsigned char* buffer, unsigned long length, int dfu_notify_finished) |
3139 | { | 3139 | { |
3140 | if (client->mode != IRECV_K_DFU_MODE) { | 3140 | if (client->mode != IRECV_K_DFU_MODE) { |
3141 | return IRECV_E_UNSUPPORTED; | 3141 | return IRECV_E_UNSUPPORTED; |
3142 | } | 3142 | } |
3143 | 3143 | ||
3144 | size_t origLen = length; | 3144 | unsigned long origLen = length; |
3145 | 3145 | ||
3146 | KIS_upload_chunk *chunk = calloc(1, sizeof(KIS_upload_chunk)); | 3146 | KIS_upload_chunk *chunk = calloc(1, sizeof(KIS_upload_chunk)); |
3147 | uint64_t address = 0; | 3147 | uint64_t address = 0; |