static bool received;
/* mutex for the common variable */
-pthread_mutex_t lock;
+static pthread_mutex_t lock;
/* receive callback function */
static void rec_cb(meshlink_handle_t *mesh, meshlink_node_t *source, const void *data, size_t len) {
pthread_mutex_unlock(&lock);
meshlink_close(mesh_handle);
- meshlink_destroy("set_receive_cb_conf");
+ assert(meshlink_destroy("set_receive_cb_conf"));
return true;
}
pthread_mutex_unlock(&lock);
meshlink_close(mesh_handle);
- meshlink_destroy("set_receive_cb_conf");
+ assert(meshlink_destroy("set_receive_cb_conf"));
return true;
}