From: Donna Sharp Date: Mon, 11 Nov 2024 23:55:54 +0000 (-0500) Subject: ospfd: remove unused function ins ospfd/ospf_lsa.c X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=e7d61aa7979158fa136512c50db74d545751c85c;p=matthieu%2Ffrr.git ospfd: remove unused function ins ospfd/ospf_lsa.c Signed-off-by: Donna Sharp --- diff --git a/ospfd/ospf_lsa.c b/ospfd/ospf_lsa.c index 1d5c0be5c4..15068ec820 100644 --- a/ospfd/ospf_lsa.c +++ b/ospfd/ospf_lsa.c @@ -87,16 +87,6 @@ bool ospf_check_dna_lsa(const struct ospf_lsa *lsa) : false); } -struct timeval int2tv(int a) -{ - struct timeval ret; - - ret.tv_sec = a; - ret.tv_usec = 0; - - return ret; -} - struct timeval msec2tv(int a) { struct timeval ret; diff --git a/ospfd/ospf_lsa.h b/ospfd/ospf_lsa.h index f58bbde07a..309d506ea6 100644 --- a/ospfd/ospf_lsa.h +++ b/ospfd/ospf_lsa.h @@ -224,7 +224,6 @@ enum lsid_status { LSID_AVAILABLE = 0, LSID_CHANGE, LSID_NOT_AVAILABLE }; /* Prototypes. */ /* XXX: Eek, time functions, similar are in lib/thread.c */ -extern struct timeval int2tv(int); extern struct timeval msec2tv(int a); extern int tv2msec(struct timeval tv);