summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ospfd/ospf_lsa.c10
-rw-r--r--ospfd/ospf_lsa.h1
2 files changed, 0 insertions, 11 deletions
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);