]> git.meshlink.io Git - meshlink/blobdiff - test/blackbox/test_case_channel_conn_07/node_sim_peer.c
Update UTCP and replace gettimeofday() with clock_gettime().
[meshlink] / test / blackbox / test_case_channel_conn_07 / node_sim_peer.c
index ae8dadcc2bb22a4f68d7ce6aa028e3d14a8e0036..19c96f884fcae399a559b26e90621dd808ce2a31 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>
@@ -72,8 +77,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 = { 2, 0 };
-       struct timespec timeout = {0};
 
        // Import mesh event handler