git: 7825619a9eb7 - main - ndp: fix signed/unsigned compariosn in the netlink code.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 25 Apr 2023 15:02:32 UTC
The branch main has been updated by melifaro: URL: https://cgit.FreeBSD.org/src/commit/?id=7825619a9eb7e6ff799fa120a547a0200fa758a9 commit 7825619a9eb7e6ff799fa120a547a0200fa758a9 Author: Alexander V. Chernikov <melifaro@FreeBSD.org> AuthorDate: 2023-04-25 14:55:56 +0000 Commit: Alexander V. Chernikov <melifaro@FreeBSD.org> CommitDate: 2023-04-25 14:55:56 +0000 ndp: fix signed/unsigned compariosn in the netlink code. --- usr.sbin/ndp/ndp_netlink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);