From nobody Mon Apr 08 20:25:43 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 4VD0w829hwz5Hj1f; Mon, 8 Apr 2024 20:25:44 +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 4VD0w75ct9z3xcn; Mon, 8 Apr 2024 20:25:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1712607943; 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=iBJt46Cy0C37MeZqPsSRTsyxeNGxfymjnuYGZ9MNj5A=; b=IdxLE/oNDNYRdruHBXUhRTqgvGB081i7Tq310g1UHUcvnZGLtXletrxq7rCbFTNOrfIZTX 8UKhtbY5U2MC0nvIjXrY6Fh7sz632NraJm+Man02UpPkmK5KL0vEB5P3WP5ldNSgBFvaYi Pm9Fsgkmg0pERnZJcPqQ8f0bW7leehE4CCS6dExkqd04SWcLxM38QLIuHStt4rCism0aIz bxlBvUCD8HLVjixLl5ZIRI9pyuRfyQ7cV+5W0XYh0hBssAXc9ZBnsvo++StaobANqJkavC IVQVyMEjtsAUJsP/cKV12n59ndysFixGWa8HQyHWYNgMK3AengMMZz5eCoUAtg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1712607943; a=rsa-sha256; cv=none; b=uacm+2PTcoOuCb7tf14tBJr5pfek13rD9Hdx4ZqT2JVIuSaCS03Cygd1jRRr71kso3N90x y9SeTIfhTvC5GPLwKNJI7nz545+1gWcjv9Xgi5C7rpVQj2lQITbj5OzExZfGAUPGqPyM55 dbLFVqVlW/q+x6CMsgn1G65ncG7Y6F1c3UeG++ke9r2vJ1T0NeCVQnledKJGn0g5rXiICz esjuYLBYY7DXZrLdKiO5qQvUWM1nnTohFhXCZDWVAFrABgM1l/WVosLb5x6XI8HABf38Ko X2ZP4q/5dpnlEJh4wvPSSKJkrKvui60A7uxMj1+lbnU3RgxgJt6GMaLYoG4WMg== 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=1712607943; 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=iBJt46Cy0C37MeZqPsSRTsyxeNGxfymjnuYGZ9MNj5A=; b=cxwFSRTcpf190nEZ5qbzElEJFYDYTv2hyCvtiEJi+D6rj0/JT9W2O392zdrZJsBvpmpH+N WlE/cGvODNNQhf526GtbncMwbwbeYeEz+TGGDTsKku6xTF1TAdxLfy82eDseqoWN6zVjZT jb0UTkAN0Pw136AuEjdmrd5ZAhQgunXUGBeA/FzSkvfzNKBYR4N12QcomRsP46/6YiuM/D DEC9l2USuSsJOc+tWbvjrSWVgMiWd/geZGDtPWw6paosRihPEnbwGz5bf9++Z2NikQnGaR BiKY8sKM5pGr1+Gn6x55v/qc0+so40X4Z155TA+h4rGg/h+3/lekrhFe5xdIYA== 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 4VD0w75CtRzQRv; Mon, 8 Apr 2024 20:25:43 +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 438KPhSZ039573; Mon, 8 Apr 2024 20:25:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 438KPh6s039570; Mon, 8 Apr 2024 20:25:43 GMT (envelope-from git) Date: Mon, 8 Apr 2024 20:25:43 GMT Message-Id: <202404082025.438KPh6s039570@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: John Baldwin Subject: git: c680577ec993 - stable/13 - netlink.h: s/typeof/__typeof 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: jhb X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: c680577ec993959cd6c76adcdc6b26930588e30b Auto-Submitted: auto-generated The branch stable/13 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=c680577ec993959cd6c76adcdc6b26930588e30b commit c680577ec993959cd6c76adcdc6b26930588e30b Author: Lexi Winter AuthorDate: 2024-01-18 02:34:39 +0000 Commit: John Baldwin CommitDate: 2024-04-08 17:37:49 +0000 netlink.h: s/typeof/__typeof typeof() does not exist in -std=c99 mode and the relevant #define is only for _KERNEL, so use __typeof here instead. Reviewed by: jhb MFC after: 2 weeks Pull Request: https://github.com/freebsd/freebsd-src/pull/1070 (cherry picked from commit 4261507a5e3e73ef6f9535935d22785056954b19) --- sys/netlink/netlink.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netlink/netlink.h b/sys/netlink/netlink.h index 9e6beef96cc6..ffbeb0a9c3f9 100644 --- a/sys/netlink/netlink.h +++ b/sys/netlink/netlink.h @@ -194,7 +194,7 @@ enum nlmsgerr_attrs { #define NL_ITEM_OK(_ptr, _len, _hlen, _LEN_M) \ ((_len) >= _hlen && _LEN_M(_ptr) >= _hlen && _LEN_M(_ptr) <= (_len)) -#define NL_ITEM_NEXT(_ptr, _LEN_M) ((typeof(_ptr))((char *)(_ptr) + _LEN_M(_ptr))) +#define NL_ITEM_NEXT(_ptr, _LEN_M) ((__typeof(_ptr))((char *)(_ptr) + _LEN_M(_ptr))) #define NL_ITEM_ITER(_ptr, _len, _LEN_MACRO) \ ((_len) -= _LEN_MACRO(_ptr), NL_ITEM_NEXT(_ptr, _LEN_MACRO))