]> git.meshlink.io Git - meshlink/blobdiff - src/meshlink.c
Move timespec functions to utils.h.
[meshlink] / src / meshlink.c
index a5bf2c90ac3f6f33916d8eafceadb98a24f56ebd..e70a61697ecfdb5a0bf2f0e735137df1c2350daa 100644 (file)
@@ -1021,14 +1021,6 @@ static bool ecdsa_keygen(meshlink_handle_t *mesh) {
        return true;
 }
 
-static bool timespec_lt(const struct timespec *a, const struct timespec *b) {
-       if(a->tv_sec == b->tv_sec) {
-               return a->tv_nsec < b->tv_nsec;
-       } else {
-               return a->tv_sec < b->tv_sec;
-       }
-}
-
 static struct timespec idle(event_loop_t *loop, void *data) {
        (void)loop;
        meshlink_handle_t *mesh = data;