From ef491574eeaec49658d0a5f62c927a337e62361c Mon Sep 17 00:00:00 2001 From: Alexander Vdolainen Date: Sat, 20 Feb 2016 21:39:27 +0200 Subject: [PATCH] [core] removed unused compare function, removed annoying warning; --- lib/sxmplv2.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/sxmplv2.c b/lib/sxmplv2.c index 79d708d..d78b5cd 100644 --- a/lib/sxmplv2.c +++ b/lib/sxmplv2.c @@ -445,11 +445,6 @@ sxlink_t *__link_minimal_alloc(struct in_addr *addr) return NULL; } -static long __cmp_u64(const void *a, const void *b) -{ - return *(uint64_t *)a - *(uint64_t *)b; -} - static int __link_second_alloc(sxlink_t *co) { usrtc_node_init(&co->csnode, co); @@ -695,7 +690,7 @@ static void *__sxmpl_thread(void *b) struct timespec wtick; int dispatch = 0, e; size_t rd, wr; - ulong_t mid; + ulong_t mid = 0; #ifdef _PERFPROFILE struct timeval beg, end; #endif