From nobody Wed Feb 28 22:27:12 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 4TlTVm4mKbz5CXYV; Wed, 28 Feb 2024 22:27:12 +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 4TlTVm4BhVz4n8M; Wed, 28 Feb 2024 22:27:12 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1709159232; 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=diFKItAb+afAmS7K21sl4AE9e+7yDWPMh/OouSCbQ8E=; b=Gw/hsrnHleSS3x8DBpMKYAxxhpAVNaJFagN7ob7Mb7xm7d5MYFQuyMeNFYqHyoq0t3UCcw wdsSkucQvmPWloFnQrYHw5z6EmMI/QgBcLVzw7qpfUpveFPY9lVBYp/lMPJHdS+x7N+pjQ /1w/74NEqN6uoJtXrTkvJUaEvdT8g6zbyuBmafY0aZuJX85ICFyVvmn+QhiQz2sbbnJtdT 8mHfmchwW4s8dUXFCtE4/5V1NaS8DLHnr+YWHvNvrtT/Iyzsy9uCmMxk2dYfSbjEGVwoX/ 8KzmLqD37h8MghuTNGFGkBzTrJH5q7sZrj2Azw8TywzCejH0YD5QsyjKNEi3pQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1709159232; a=rsa-sha256; cv=none; b=E4antmMDwFGoK0JD+uOF6s8VoAemOrQxs5+wvFQKoFXVHZOQnDUOiiIC5jLzRvzD5N5P+0 vvG+rEsfFe8L6N8WEXzSKrUrnqsEVXUmPsJl/PCiI6JUko8WBe6yu8bvSmwpRER3EoFpy8 D/D0PG80yt8u+h06mwo4b2Jmk5dOLF7VPVXTR+9UWU1b33HbQl8KrJBoPm4zNwX4v09+Vx czU97YgMDbVGIb1ql+jSpdN5CYNPMOgxkp+8kEWBRLbo29YURNsr3GUbDDvMMqUKiGOILq osVtw9o0tZ2MBlt0KvV5H7tNRF00vMSjzy4fQeshMKK3RPoFiI3mY7/8KuK97w== 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=1709159232; 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=diFKItAb+afAmS7K21sl4AE9e+7yDWPMh/OouSCbQ8E=; b=GS7ih0+NbxLfYKO3alXGC/MixWmwYeuYd+3/abSIlMtlSdwCivtEXlZ69uu+Vis+QK9waf qAEbGzM8/rzHNT4I8DoYXP1aY1QjuCxI7OYUlXHwNv5hLHbHIyIqAxca9q5hwl4A1/uqbl PqS/R/CkWgK1PvEiM1CrIVFCIkSD2QABTUolv7Dak9uoEP6q+6SplclzX/jEJ46D5GIFME bI+NZ1B9AAZ0rxNjoBJqCO/8RqjZGRmBk26RqcNjltyg4n/w7k0Hm/m1wARsOJL64DWvv5 2Eh87vyhtcKVbtIxy8fWK4jxWTlby8aQHqdqdRtI0ZPJtckXCp9kEQ6lCEZdIA== 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 4TlTVm3clkzGCc; Wed, 28 Feb 2024 22:27:12 +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 41SMRCAS094274; Wed, 28 Feb 2024 22:27:12 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41SMRC1j094271; Wed, 28 Feb 2024 22:27:12 GMT (envelope-from git) Date: Wed, 28 Feb 2024 22:27:12 GMT Message-Id: <202402282227.41SMRC1j094271@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kristof Provost Subject: git: 48f33b55b014 - main - 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/main X-Git-Reftype: branch X-Git-Commit: 48f33b55b0148c3c8991e53156f37c42b8bc22e9 Auto-Submitted: auto-generated The branch main has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=48f33b55b0148c3c8991e53156f37c42b8bc22e9 commit 48f33b55b0148c3c8991e53156f37c42b8bc22e9 Author: Kristof Provost AuthorDate: 2024-02-26 10:18:30 +0000 Commit: Kristof Provost CommitDate: 2024-02-28 22:26:17 +0000 netlink: fix casts Reviewed by: melifaro MFC after: 1 week Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D44088 --- 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 4440f8df2df2..8caa13fbf3ce 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); }