]> git.meshlink.io Git - meshlink/blobdiff - test/ephemeral.c
Don't use assert() to check the results of pthread_*() calls.
[meshlink] / test / ephemeral.c
index 845b218299cbf13fff8e74a1bc6c923314c707a7..07db7ebd5322acd768db53e83a752126c14e315a 100644 (file)
@@ -1,3 +1,7 @@
+#ifdef NDEBUG
+#undef NDEBUG
+#endif
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <sys/time.h>
@@ -6,7 +10,7 @@
 #include "meshlink.h"
 #include "utils.h"
 
-int main() {
+int main(void) {
        meshlink_set_log_cb(NULL, MESHLINK_DEBUG, log_cb);
 
        // Open two ephemeral meshlink instance.