]> git.meshlink.io Git - meshlink/blobdiff - test/blackbox/test_case_channel_conn_06/node_sim_peer.c
Fix compiler warnings in the test suites.
[meshlink] / test / blackbox / test_case_channel_conn_06 / node_sim_peer.c
index 24c8d7d7e6197ab8320869b67ba94f0ab181e177..c1a5b91abe4be6ae85031b305b7cbc2db89c0be4 100644 (file)
 #define CHANNEL_PORT 1234
 
 static int client_id = -1;
-static bool channel_rec;
-static bool channel_reply;
-static pthread_mutex_t reply_lock = PTHREAD_MUTEX_INITIALIZER;
-static pthread_cond_t reply_cond = PTHREAD_COND_INITIALIZER;
-static pthread_mutex_t recv_lock = PTHREAD_MUTEX_INITIALIZER;
-static pthread_cond_t recv_cond = PTHREAD_COND_INITIALIZER;
 
 static void channel_receive_cb(meshlink_handle_t *mesh, meshlink_channel_t *channel, const void *dat, size_t len);
 
@@ -77,8 +71,9 @@ static void channel_receive_cb(meshlink_handle_t *mesh, meshlink_channel_t *chan
 }
 
 int main(int argc, char *argv[]) {
+       (void)argc;
+
        struct timeval main_loop_wait = { 5, 0 };
-       struct timespec timeout = {0};
 
        // Import mesh event handler