summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2021-04-26 07:40:27 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2021-04-26 07:40:27 +0000
commit06d633c5dcfb28ce1d10bfff277dab55a12e54e4 (patch)
tree7de2df1edf3e383936a2f5ae58ec4454177ca8e3 /usr.sbin/bgpd
parent13c64216aa38994beac711ef1f2f006d74ce39a9 (diff)
The time_t now is only set but never used. Noticed by gcc.
Diffstat (limited to 'usr.sbin/bgpd')
-rw-r--r--usr.sbin/bgpd/rtr.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.sbin/bgpd/rtr.c b/usr.sbin/bgpd/rtr.c
index dc4d9ca1522..576e60ce1b2 100644
--- a/usr.sbin/bgpd/rtr.c
+++ b/usr.sbin/bgpd/rtr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rtr.c,v 1.1 2021/02/16 08:29:16 claudio Exp $ */
+/* $OpenBSD: rtr.c,v 1.2 2021/04/26 07:40:26 claudio Exp $ */
/*
* Copyright (c) 2020 Claudio Jeker <claudio@openbsd.org>
@@ -74,7 +74,7 @@ rtr_main(int debug, int verbose)
struct pollfd *pfd = NULL;
void *newp;
size_t pfd_elms = 0, i;
- time_t now, timeout;
+ time_t timeout;
log_init(debug, LOG_DAEMON);
log_setverbose(verbose);
@@ -129,7 +129,6 @@ rtr_main(int debug, int verbose)
set_pollfd(&pfd[PFD_PIPE_MAIN], ibuf_main);
set_pollfd(&pfd[PFD_PIPE_RDE], ibuf_rde);
- now = getmonotime();
i = PFD_PIPE_COUNT;
i += rtr_poll_events(pfd + i, pfd_elms - i, &timeout);
@@ -152,7 +151,6 @@ rtr_main(int debug, int verbose)
} else
rtr_dispatch_imsg_rde(ibuf_rde);
- now = getmonotime();
i = PFD_PIPE_COUNT;
rtr_check_events(pfd + i, pfd_elms - i);
}