]> git.meshlink.io Git - meshlink/blobdiff - src/net_socket.c
Update UTCP and replace gettimeofday() with clock_gettime().
[meshlink] / src / net_socket.c
index fcadd90c25e95531cc8f05833971f18f1267699f..63bf49ea3c6f0511de3322e9d84e21d8ddcc5092 100644 (file)
@@ -91,7 +91,7 @@ void retry_outgoing(meshlink_handle_t *mesh, outgoing_t *outgoing) {
                outgoing->timeout = mesh->maxtimeout;
        }
 
-       timeout_add(&mesh->loop, &outgoing->ev, retry_outgoing_handler, outgoing, &(struct timeval) {
+       timeout_add(&mesh->loop, &outgoing->ev, retry_outgoing_handler, outgoing, &(struct timespec) {
                outgoing->timeout, prng(mesh, TIMER_FUDGE)
        });