From nobody Fri Mar 08 09:11:34 2024 X-Original-To: dev-commits-src-all@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 4TrgQb0wXpz5DDVT; Fri, 8 Mar 2024 09:11:35 +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 4TrgQb0W7yz40X5; Fri, 8 Mar 2024 09:11:35 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1709889095; 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=OtxI8S0eYNlmA32JM1BnpeevQdEOmV5UXuENhiF0ORY=; b=GAYUyN6h3vH5UNQ54b2Fl8x+krM1S7RH5KAR+4IIxmflf0rhhOHNaHGrBSly7EB4IEcH72 hwg7OerMB5Xyj9WJuZK/6gPM5W69sVa91UK8zo9Id1nqudUS0eibuPuoZEHW9KFXO6xWCd Hg7/K1cpm8uSUPJEtOWHEbVdXx0+FhU382aGgDZ3hrioLAcnL0+RUx84znHNOs9W1GUwjE E2Loz0/tB9UEgA4+nna6X0HamZR4vYEblKV1M4jq8vKjEiiT+s8/EVecwczDvmf8de/YMH rXKqpERvQ8/+CNeWYim/8zmIKqBsbj9cy3e4Gqknlswd2RM7KC/fDCKeoqRslw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1709889095; a=rsa-sha256; cv=none; b=nswVFy+XgmQ8LWl1JpJm/HX4VYYZamcBsPpaRavMM56cbuN9Aix9NiIDWTj0JmIJBgAFDj 9G8aLr60zruFHMT1ZuMubFUmuW8iEE6g8v4YkwfR1c52xj674aMEyyLf3hAPShyzsjsQhf sk8ru8HGtKfuvIT68WohBdhwtqhIdbXXOanJTE1iUljEMplbE4ZBBrMfzhdPOcnhn0GMCL ixiZzYJe/EQHO/X11u6dL6s1P3MCPIaPttAy2iboVoW0zZE2vpo6ndADNBzczUT6Id/B72 3pT6Mat9+MPs7Fgt2M3ltJ8qpxgiAtSeXoPA7KgussSAoEB0aj/9f0btiQiM0Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1709889095; 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=OtxI8S0eYNlmA32JM1BnpeevQdEOmV5UXuENhiF0ORY=; b=ZxNnIdD0fDRcQZc8D0oehTEjQlXYSZOf+4BHpJyubDC3n4kLtWOprNWc45WzGGIgOdmLm8 hUtj2oBPqAyRC/oE5yD92sNWJCfdG9jheuqVFJj41uj787squumJtkzJcgg3Ed3Vdlp5Bn 4o+YggfkOQ3U2RNvfxfb64IlPiCROU0yugDoWqPmKQOKGjDFBBNNSE09wGw5tuQK3A4wqp YE1YAvYp48D5n/NtNFIVKLr4W7F0mT6PdOgGwCY5p1GYMgAzrbnClBK0nZCLoChXvmR8bG mRDuc+KKWeAfrhZRPK+E5yySuVe1EihIlzS9hp3dUJyu7+lp3hrxk8CJ2SSeXw== 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 4TrgQb06Vlz1B3S; Fri, 8 Mar 2024 09:11:35 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 4289BYIG057392; Fri, 8 Mar 2024 09:11:34 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 4289BYuH057389; Fri, 8 Mar 2024 09:11:34 GMT (envelope-from git) Date: Fri, 8 Mar 2024 09:11:34 GMT Message-Id: <202403080911.4289BYuH057389@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Kristof Provost Subject: git: 14bbf0943308 - stable/14 - netlink: fix casts List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kp X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 14bbf0943308a53fdca3779334f6dde2c62fb0cd Auto-Submitted: auto-generated The branch stable/14 has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=14bbf0943308a53fdca3779334f6dde2c62fb0cd commit 14bbf0943308a53fdca3779334f6dde2c62fb0cd Author: Kristof Provost AuthorDate: 2024-02-26 10:18:30 +0000 Commit: Kristof Provost CommitDate: 2024-03-08 09:11:15 +0000 netlink: fix casts Reviewed by: melifaro MFC after: 1 week Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D44088 (cherry picked from commit 48f33b55b0148c3c8991e53156f37c42b8bc22e9) --- sys/netlink/netlink_message_parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netlink/netlink_message_parser.c b/sys/netlink/netlink_message_parser.c index bf0140c98120..614bc96ab9f4 100644 --- a/sys/netlink/netlink_message_parser.c +++ b/sys/netlink/netlink_message_parser.c @@ -321,7 +321,7 @@ nlattr_get_uint8(struct nlattr *nla, struct nl_pstate *npt, const void *arg, voi nla->nla_type, NLA_DATA_LEN(nla)); return (EINVAL); } - *((uint16_t *)target) = *((const uint16_t *)NL_RTA_DATA_CONST(nla)); + *((uint8_t *)target) = *((const uint8_t *)NL_RTA_DATA_CONST(nla)); return (0); }