From nobody Tue Aug 26 00:24:57 2025 X-Original-To: dev-commits-src-branches@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 4c9pMZ1F8cz65tLh; Tue, 26 Aug 2025 00:24:58 +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 "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4c9pMZ0MDCz3l1J; Tue, 26 Aug 2025 00:24:58 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1756167898; 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=zuVx3CHYuqQI7LiheXlPdDmCHVBNssgioiBBC8bd4pQ=; b=nZJ5ZYnjaay+5agpqI93dM5OY4GskhL0MqhTgohCeofthFBrcb9cUJE58yAnujR1RGqueb ZC+PeZBil9UrUPrd4Y1SRsxjB67+B+xOa6XgB/f51rKbUEiYNCoks0fgAe0J0EktDldh3k /xIt/5HLJMa3gC9cc3/2FSzBoOVIR8OxpygnfS2OGaNXBgAs6wjqLP3BpDBgW0JJUIOfc6 sW17BKHmaWqE9g0ntHZ4jqJUIYETnUGMf5pFKRfg2WndTHZLG+8RbueAigL/Y1xBt5cOYT RCDu0vVgNuLtThXVkSWECIvSwaEv658JJ+rDdg2n/uabasW0RPmEaCScDETR7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1756167898; 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=zuVx3CHYuqQI7LiheXlPdDmCHVBNssgioiBBC8bd4pQ=; b=dJpB7ZtXER94tSNVj7YtwB5UOtQJs5VTSHT+NiRlJmM+9VFEcFOinWA+tFz74YDnFw697Z SGzWkCH1ZMH9ny3uxdgxGP7ahfc2IFPg0u0f78vYoaIUXgtosHV6QKlp41bF5tYHazCs5t 1UcfzzFvq5o4Wow+ZZkYdBepYtg303p08MbxeoqhClgcvMUQZ6TJXexKTzmjSx9XxGi/Vj Ax5qURRlrep7O1aFlTRZUsEOlA/aRAmtVkCqy3pfG+CD0N6R5NTXWklmQROXlCMKfMJB3P C5FmMTAf1EDVYsnQZnh9xR8g0k7bOeLOcr5fDQnpFoMecDNYH5rSzhC8iO+SjQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1756167898; a=rsa-sha256; cv=none; b=Z0aH8ArCXrKVxqRp3a0I2dyZKUhOOCTP4WRtR9VFHks8L6TSNes3PzuagEQ0tfkqKUNM/A qWeDsm8f8rY17+JE7fRUOsiT8mnJz3mVfFj1p3ZkuCeI2rWNRIMnErpyZv3z8Bn9yRIF9X QQrbFokBrVuQZRv8Dn80NvJ4y6W3ry/JEoA35pf5lhnpboawPQEL1bJpP3gY5vPVGyQ4CM LyOqor0I2Vv9M+O9p4pKfLqehaycHr7M1luRZbAIjmoUr3PUBViCXQjvQ5GU9+uTXxd94j HH52JvcgxxFzgVYKIfCbTxWde/IKh+HK8ga3w/ccK4Kah+OjyAxtyR7ntE7Jow== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4c9pMY73nLz1BX6; Tue, 26 Aug 2025 00:24:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 57Q0OvEE071185; Tue, 26 Aug 2025 00:24:57 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 57Q0Ov6b071182; Tue, 26 Aug 2025 00:24:57 GMT (envelope-from git) Date: Tue, 26 Aug 2025 00:24:57 GMT Message-Id: <202508260024.57Q0Ov6b071182@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: 301512155324 - stable/14 - libc: convert ai_errlist array to designated initializers syntax List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 30151215532469142d7c81a7e1736cc4460170de Auto-Submitted: auto-generated The branch stable/14 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=30151215532469142d7c81a7e1736cc4460170de commit 30151215532469142d7c81a7e1736cc4460170de Author: Konstantin Belousov AuthorDate: 2025-08-19 02:55:24 +0000 Commit: Konstantin Belousov CommitDate: 2025-08-26 00:23:30 +0000 libc: convert ai_errlist array to designated initializers syntax (cherry picked from commit 632f7051709da98d4c9e59f11404f00d456b592c) --- lib/libc/net/gai_strerror.c | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/lib/libc/net/gai_strerror.c b/lib/libc/net/gai_strerror.c index 0d4303e76a73..d2f679a6782f 100644 --- a/lib/libc/net/gai_strerror.c +++ b/lib/libc/net/gai_strerror.c @@ -46,21 +46,21 @@ * but are or may be used as extensions or in old code. */ static const char *ai_errlist[] = { - "Success", /* 0 */ - "Address family for hostname not supported", /* EAI_ADDRFAMILY */ - "Name could not be resolved at this time", /* EAI_AGAIN */ - "Flags parameter had an invalid value", /* EAI_BADFLAGS */ - "Non-recoverable failure in name resolution", /* EAI_FAIL */ - "Address family not recognized", /* EAI_FAMILY */ - "Memory allocation failure", /* EAI_MEMORY */ - "No address associated with hostname", /* EAI_NODATA*/ - "Name does not resolve", /* EAI_NONAME */ - "Service was not recognized for socket type", /* EAI_SERVICE */ - "Intended socket type was not recognized", /* EAI_SOCKTYPE */ - "System error returned in errno", /* EAI_SYSTEM */ - "Invalid value for hints", /* EAI_BADHINTS */ - "Resolved protocol is unknown", /* EAI_PROTOCOL */ - "Argument buffer overflow" /* EAI_OVERFLOW */ + [0] = "Success", + [EAI_ADDRFAMILY] = "Address family for hostname not supported", + [EAI_AGAIN] = "Name could not be resolved at this time", + [EAI_BADFLAGS] = "Flags parameter had an invalid value", + [EAI_FAIL] = "Non-recoverable failure in name resolution", + [EAI_FAMILY] = "Address family not recognized", + [EAI_MEMORY] = "Memory allocation failure", + [EAI_NODATA] = "No address associated with hostname", + [EAI_NONAME] = "Name does not resolve", + [EAI_SERVICE] = "Service was not recognized for socket type", + [EAI_SOCKTYPE] = "Intended socket type was not recognized", + [EAI_SYSTEM] = "System error returned in errno", + [EAI_BADHINTS] = "Invalid value for hints", + [EAI_PROTOCOL] = "Resolved protocol is unknown", + [EAI_OVERFLOW] = "Argument buffer overflow", }; #if defined(NLS)