Skip to content

Commit

Permalink
Mark irecv_kis_send_buffer static and silence a compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
nikias committed Nov 17, 2023
1 parent 479b1b1 commit 1535d99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libirecovery.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1535d99

Please sign in to comment.