]> git.meshlink.io Git - meshlink/blobdiff - test/blackbox/test_case_optimal_pmtu_01/node_sim_relay.c
Fix __warn_unused_result__, add more of it and fix the resulting warnings.
[meshlink] / test / blackbox / test_case_optimal_pmtu_01 / node_sim_relay.c
index d733b2b0f860414d3e7af98867f7ef523bb3596b..7823f4b9d9c362bd7bf59828686e3cc6f8e0e9ce 100644 (file)
     with this program; if not, write to the Free Software Foundation, Inc.,
     51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
+
+#ifdef NDEBUG
+#undef NDEBUG
+#endif
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
@@ -45,7 +50,7 @@ void *node_sim_pmtu_relay_01(void *arg) {
        //meshlink_set_log_cb(mesh, MESHLINK_DEBUG, meshlink_callback_logger);
        meshlink_enable_discovery(mesh, false);
 
-       meshlink_start(mesh);
+       assert(meshlink_start(mesh));
        //send_event(NODE_STARTED);
 
        /* All test steps executed - wait for signals to stop/start or close the mesh */