Fixed all warnings
This commit is contained in:
parent
1c8d652e01
commit
ce55b34929
|
@ -509,6 +509,8 @@ bool connection_is_closed(const connection_ctx_t *ctx)
|
|||
case CONN_STATE_ESTABLISHED:
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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));
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue