From nobody Tue Apr 25 15:02:32 2023 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Q5QGJ582wz47J69; Tue, 25 Apr 2023 15:02:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Q5QGJ4dv5z3P3M; Tue, 25 Apr 2023 15:02:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1682434952; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=vg12Z2TbdCWdUbg1Ja3SIG3qIckcBxNheTP1YFRWANE=; b=d5rBueOrWcBf+Ow+tP+HXmfNU+JlpvSHad9YqmjQXgsEvezK9HmbGm74QkY00VxjlHCarF upf2u1pS+0oP53w7cd1Kj1VyzgASyv9DxyPUM71bQRLVWv50K2m8hk8M0eg3fRivZWkQy7 UeXe5wEXAdfRCLC7iWWB6lzspcz8kZ3GDL4mznpHnmjoUlvb0dJk548ZazPHJ7ngRHMScX 73AGMkK8uwtsYucNCRDlrNcN3TSVcbE9TU686SzwTSzbtYnnOnMPLnWWvRKJWqnYB/jfIY CYJWYTxrChD9SXqYnhS+Nu0yRvWNz+UgEve6cfMxPDx7l6wUkZx9k1PtRVAwMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1682434952; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=vg12Z2TbdCWdUbg1Ja3SIG3qIckcBxNheTP1YFRWANE=; b=B9xtiArKBq+Ps6zXEoKpTy5kBBFFft7rVb2C5koxK3JFjB6N78WBa9NQ/evHNLjxQ1kmhl l41V+7jd9Fh8CgXkNEkuyrQCey4LKa0E7YmG0XaXrmt43t4Pwc/43E7E6LPaNtcUWNBw3t DeNlBJHTZD439Y6sYSfrvlHATNxea0zckY+3IvOArNvoCoCMlf3nxQdzOsJpZQ1+44owuk 5fKdqT7QdyHoURqPnPralktQ6wUygkiJg9Rw2x4l6QZuqzB1exoDI1xtDztxHIAqKKAeTP jsMurrLpJpFE0QjtMA7DthN2RzARN3tsl+eG9GpW/R/HU5aoKwCQl2uxYXHpiw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1682434952; a=rsa-sha256; cv=none; b=vzXZLrKUS/MUTD/GL3xERLsNGkEGuyZEhtJmp3jN0qbmjcS0Q0d/Bd82dZ71TTqbFo9K5D cjFp88hUn0UcXUOpbHUlT3icQfgBZuT72ypr6ztKAA5g9VABAsZoWtIwGWMRrwDzsWzY5D l98T79YdpzPr8rEvWf7q4wpfYUB2Q5ELBPdkzV/hiITVCs1DV8ZZp8pLI8FReicrqy+WxR l9vTTpFKiZAiMyAudPrrhDv0+PJtYMVg4zab6i4H9EW6UvvvIy581Nf76E6oiTSVLOsBPX ZRQVrDzwrHbV+Jl21NmI9NRthzbdx3o7Wwit+bK2l45/aNNizeRSLp/QvT8TUA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Q5QGJ3jS1z1BR0; Tue, 25 Apr 2023 15:02:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 33PF2WZ9092276; Tue, 25 Apr 2023 15:02:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 33PF2WUF092275; Tue, 25 Apr 2023 15:02:32 GMT (envelope-from git) Date: Tue, 25 Apr 2023 15:02:32 GMT Message-Id: <202304251502.33PF2WUF092275@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: "Alexander V. Chernikov" Subject: git: 7825619a9eb7 - main - ndp: fix signed/unsigned compariosn in the netlink code. List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: melifaro X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 7825619a9eb7e6ff799fa120a547a0200fa758a9 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by melifaro: URL: https://cgit.FreeBSD.org/src/commit/?id=7825619a9eb7e6ff799fa120a547a0200fa758a9 commit 7825619a9eb7e6ff799fa120a547a0200fa758a9 Author: Alexander V. Chernikov AuthorDate: 2023-04-25 14:55:56 +0000 Commit: Alexander V. Chernikov 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);