From nobody Mon Jan 22 05:29:58 2024 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 4TJJh70bsQz575s7; Mon, 22 Jan 2024 05:29:59 +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 4TJJh706Cnz56rk; Mon, 22 Jan 2024 05:29:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705901399; 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=PJDmhnCIomFTrU9mnyS3ueB5JUcmITe2b+ep8o0x2ic=; b=dil9IbGYYmPaaKcgrT0eK4gdXMw5mFjspWAPARrP5OjOomOXSNisXKQFQHqsjSzeaI3IfW ULzY28xcuKLwdRt6ceVlfYUziOD1m7jdGWY8zYouGiHEm9NvlN1sLOqhkTbxSsLzBW1vLM 2l483AKc/wnTLw3XpCS+sjBbwyf6teGwG97b79yLHif/bLMclxuDl738kgWighQiz7a6I6 sdlRFu70JPw2iwipdmapqgAls2xlr2ZvCSpxJdhIReMvN3KLucghXARJepMX84yPbW+NCE 4D//6Di4ZAUhuk0nX5QpApzkQS+xlBbOGCgM7TYcdGZ+1+KZLkvvbC8+to974Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705901399; 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=PJDmhnCIomFTrU9mnyS3ueB5JUcmITe2b+ep8o0x2ic=; b=YgLN2Zdbl9H4Lxk24ILSOXQ9veMkyv/AFv3m8rhq6pdVqBhOFY4FiAuwWqo6OO/UHiNoYT lNRbw/NQrsnIwg0eObjMD8nf/XTlkPJeFGgMGlvMwUQshtF4tEICQZBikRHEkC7tdH7yux YuhaSJKIF3hGt7Oh2tyxS82VdHZ0ICg+Aq+iD+10uBpQXoFJDH0Ws9XY1UKxFQYdz5jk5D LaGCk4Rpx879unGxmAaqBghTXXTScBwXX4Xlg0JEkFvuOIXQSvwgv9cxaULLlHNveZ0SBX qVhDnZRpLmpEyziJZzi3OqJefiM4dNXfjrvuksun+L+T1Yd+6A0+WQAJcINmDw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1705901399; a=rsa-sha256; cv=none; b=ByBUU+NRAHLdcyAt4m5gEIUQYtOlYuVYeayDKErsbjUH92YooXXwEu4GKT0gS+Fj+yqvzd VbiRWwiESN4r/xSIP+8O3+4yLi4FBGGkGYkYv1RWh1xf/1rHnOqdFGAoqA9XqOdzeFQFFB m3slbTvpci83yxinB3aa9oqDKXsGHNQbSVFU40A5uipEBENlCI7NysAYJxANLiJuSNlaQ8 NYzE8kF4EgrKqp6U2LRAhia6+Ukqye6cQs3FUHepXMNg8ZW64nDDgcg6PvOKzEownTU+U5 Ml4dUoDMSpbSzJaxey877XksBslK4ezmHq1x5uZDdb+x+/gWbituQGOYWFQV7A== 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 4TJJh66GgrzpBJ; Mon, 22 Jan 2024 05:29:58 +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 40M5Tw8i090048; Mon, 22 Jan 2024 05:29:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 40M5TwC7090045; Mon, 22 Jan 2024 05:29:58 GMT (envelope-from git) Date: Mon, 22 Jan 2024 05:29:58 GMT Message-Id: <202401220529.40M5TwC7090045@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: 4261507a5e3e - main - netlink.h: s/typeof/__typeof 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: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 4261507a5e3e73ef6f9535935d22785056954b19 Auto-Submitted: auto-generated The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=4261507a5e3e73ef6f9535935d22785056954b19 commit 4261507a5e3e73ef6f9535935d22785056954b19 Author: Lexi Winter AuthorDate: 2024-01-18 02:34:39 +0000 Commit: John Baldwin CommitDate: 2024-01-22 02:15:14 +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 --- 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 759bbed6139c..2cffa7299ef4 100644 --- a/sys/netlink/netlink.h +++ b/sys/netlink/netlink.h @@ -204,7 +204,7 @@ enum nlmsginfo_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))