From fefacc69c396b02e0f31e6ca3b336b3a2764c1e5 Mon Sep 17 00:00:00 2001 From: Thomas Kolb Date: Sat, 7 Dec 2024 20:39:16 +0100 Subject: [PATCH] Fixed all warnings --- impl/src/layer2/connection.c | 2 ++ impl/test/layer2_over_udp/l2udptest_client.c | 11 +---------- impl/test/layer2_over_udp/l2udptest_digipeater.c | 2 +- 3 files changed, 4 insertions(+), 11 deletions(-) diff --git a/impl/src/layer2/connection.c b/impl/src/layer2/connection.c index e6ee834..08a9279 100644 --- a/impl/src/layer2/connection.c +++ b/impl/src/layer2/connection.c @@ -509,6 +509,8 @@ bool connection_is_closed(const connection_ctx_t *ctx) case CONN_STATE_ESTABLISHED: return false; } + + return true; } diff --git a/impl/test/layer2_over_udp/l2udptest_client.c b/impl/test/layer2_over_udp/l2udptest_client.c index 5f86ff8..6278a9f 100644 --- a/impl/test/layer2_over_udp/l2udptest_client.c +++ b/impl/test/layer2_over_udp/l2udptest_client.c @@ -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) { 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 logger_init(); @@ -145,8 +140,6 @@ int main(int argc, char **argv) return EXIT_FAILURE; } - bool on_air = true; - srand(get_hires_time()); // ** Initialize ** @@ -230,8 +223,6 @@ int main(int argc, char **argv) // TODO: send connection request while(m_running) { - uint64_t now = get_hires_time(); - connection_evt_t evt; RESULT_CHECK(connection_maintain(&l2conn, &evt)); diff --git a/impl/test/layer2_over_udp/l2udptest_digipeater.c b/impl/test/layer2_over_udp/l2udptest_digipeater.c index 9928c85..32ed7b2 100644 --- a/impl/test/layer2_over_udp/l2udptest_digipeater.c +++ b/impl/test/layer2_over_udp/l2udptest_digipeater.c @@ -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 logger_init();