Increase compiler warnings and fix them

This commit is contained in:
Andreas Eversberg
2024-04-05 21:51:41 +02:00
parent 470fc49341
commit 6e2fd793ac
123 changed files with 231 additions and 168 deletions

View File

@@ -419,7 +419,7 @@ static int validate_pin(sim_sim_t *sim, uint8_t *data, int length)
/* message buffer handling */
/* get space for return message */
uint8_t *alloc_msg(sim_sim_t *sim, int size)
static uint8_t *alloc_msg(sim_sim_t *sim, int size)
{
/* we add 4, because we push 4 bytes (ICL and L2 header later) */
if (size + 4 > (int)sizeof(sim->block_tx_data))
@@ -428,7 +428,7 @@ uint8_t *alloc_msg(sim_sim_t *sim, int size)
}
/* push space in front of a message */
uint8_t *push_msg(uint8_t *data, int length, int offset)
static uint8_t *push_msg(uint8_t *data, int length, int offset)
{
int i;