aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/ndp
diff options
context:
space:
mode:
authorAlexander V. Chernikov <melifaro@FreeBSD.org>2023-04-25 14:55:56 +0000
committerAlexander V. Chernikov <melifaro@FreeBSD.org>2023-04-25 14:55:56 +0000
commit7825619a9eb7e6ff799fa120a547a0200fa758a9 (patch)
tree4a5f62c22d763a25e0fade9271193763cbf9d15c /usr.sbin/ndp
parent722b2e2f9aa64e6ff4dec346951bd4b56cd27a8d (diff)
downloadsrc-7825619a9eb7e6ff799fa120a547a0200fa758a9.tar.gz
src-7825619a9eb7e6ff799fa120a547a0200fa758a9.zip
ndp: fix signed/unsigned compariosn in the netlink code.
Diffstat (limited to 'usr.sbin/ndp')
-rw-r--r--usr.sbin/ndp/ndp_netlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/ndp/ndp_netlink.c b/usr.sbin/ndp/ndp_netlink.c
index 927cbf9ddcb9..163806a06047 100644
--- a/usr.sbin/ndp/ndp_netlink.c
+++ b/usr.sbin/ndp/ndp_netlink.c
@@ -255,7 +255,7 @@ print_entry(struct snl_parsed_neigh *neigh, struct snl_parsed_link_simple *link)
xo_emit(xobuf, host_buf, ether_str(&sdl), ifname);
/* Print neighbor discovery specific information */
- uint32_t expire = neigh->ndaf_next_ts;
+ time_t expire = (time_t)neigh->ndaf_next_ts;
int expire_in = expire - now.tv_sec;
if (expire > now.tv_sec)
xo_emit("{d:/ %-9.9s}{e:expires_sec/%d}", sec2str(expire_in), expire_in);