]> git.proxmox.com Git - mirror_frr.git/blobdiff - tests/lib/test_timer_correctness.c
bgpd: avoid memcmp(NULL, NULL)
[mirror_frr.git] / tests / lib / test_timer_correctness.c
index eb9bca71d73c209eb76f41bfdbb3365b04cfa948..cbf9b05546d1d733a438e4630cfdab21ccb0a7e5 100644 (file)
@@ -28,7 +28,6 @@
 #include <unistd.h>
 
 #include "memory.h"
-#include "pqueue.h"
 #include "prng.h"
 #include "thread.h"
 
@@ -97,8 +96,8 @@ static int timer_func(struct thread *thread)
 
 static int cmp_timeval(const void *a, const void *b)
 {
-       const struct timeval *ta = *(struct timeval *const *)a;
-       const struct timeval *tb = *(struct timeval *const *)b;
+       const struct timeval *ta = *(struct timeval * const *)a;
+       const struct timeval *tb = *(struct timeval * const *)b;
 
        if (timercmp(ta, tb, <))
                return -1;