Fixed all warnings
Some checks failed
/ build-hamnet70 (push) Failing after 17s
/ build-doc (push) Successful in 16s
/ deploy-doc (push) Has been skipped

This commit is contained in:
Thomas Kolb 2024-12-07 20:39:16 +01:00
parent 1c8d652e01
commit ce55b34929
3 changed files with 4 additions and 11 deletions

View file

@ -509,6 +509,8 @@ bool connection_is_closed(const connection_ctx_t *ctx)
case CONN_STATE_ESTABLISHED: case CONN_STATE_ESTABLISHED:
return false; return false;
} }
return true;
} }

View file

@ -72,11 +72,6 @@ static void block_tx_for(unsigned offset_ms)
} }
void handle_received_packet(uint8_t *packet_data, size_t packet_len)
{
}
static result_t transmit(const uint8_t *data, size_t len) static result_t transmit(const uint8_t *data, size_t len)
{ {
result_t result = OK; result_t result = OK;
@ -135,7 +130,7 @@ void conn_evt_cb(struct connection_ctx_s *conn, connection_evt_t evt, void *user
} }
int main(int argc, char **argv) int main(void)
{ {
// initialize the console logger // initialize the console logger
logger_init(); logger_init();
@ -145,8 +140,6 @@ int main(int argc, char **argv)
return EXIT_FAILURE; return EXIT_FAILURE;
} }
bool on_air = true;
srand(get_hires_time()); srand(get_hires_time());
// ** Initialize ** // ** Initialize **
@ -230,8 +223,6 @@ int main(int argc, char **argv)
// TODO: send connection request // TODO: send connection request
while(m_running) { while(m_running) {
uint64_t now = get_hires_time();
connection_evt_t evt; connection_evt_t evt;
RESULT_CHECK(connection_maintain(&l2conn, &evt)); RESULT_CHECK(connection_maintain(&l2conn, &evt));

View file

@ -120,7 +120,7 @@ void rx_data_to_tun(const layer2_data_packet_t *data_packet)
} }
int main(int argc, char **argv) int main(void)
{ {
// initialize the console logger // initialize the console logger
logger_init(); logger_init();