]> git.meshlink.io Git - meshlink/blobdiff - test/channels-failure.c
Fix assert that could incorrectly be triggered when a peer closed the channel.
[meshlink] / test / channels-failure.c
index 5c98005575cc803f477c3bd9d7cf9637dbabfb42..e9b4c7ba4755280710724e72f6fa276c95218b53 100644 (file)
@@ -1,3 +1,7 @@
+#ifdef NDEBUG
+#undef NDEBUG
+#endif
+
 #include <stdio.h>
 #include <unistd.h>
 #include <stdlib.h>
@@ -39,7 +43,7 @@ static void receive_cb(meshlink_handle_t *mesh, meshlink_channel_t *channel, con
        set_sync_flag(&receive_flag, true);
 }
 
-int main() {
+int main(void) {
        meshlink_set_log_cb(NULL, MESHLINK_DEBUG, log_cb);
 
        // Open two meshlink instances.