From nobody Tue Aug 19 21:26:41 2025 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 4c62hd3s3tz62ZTs; Tue, 19 Aug 2025 21:26:41 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4c62hd2l5Xz3CwW; Tue, 19 Aug 2025 21:26:41 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1755638801; 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=5CoEFHGC4Xb1exafX6WoKog1eAm0LMGp2LBLDBJQJ7E=; b=Lr0VPoqY6QG+sAePY90qmqtyA930q3c+KGm75vsahspkHfhYslmZEKdu7YP2KdU5/I2WZD RYMBD8sN189wyhZtpOUsVsu3vs3z3DeWIBXIEANaV5pjvCqMnhSlNRSnPE6UUz4nKF54Zg nH6L/hyfDfIcPMSBFTXbKcR+tnG+WLN0tmxytynI0Z8AHfJCtwKhuDnvHksPMwEWfvS8zi n4ZVNmprudD4V4wJV7gtiHbIgw1VFtJbqH0CTkWtHrkMc/j1RjjUG8/WbB3CktDy1YJCY7 xEF4EM4HaFghiLcBGLXch4WSXG5KScpBSxKYIlmdMWioFWs8eS30oHgJ4HG6BA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1755638801; 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=5CoEFHGC4Xb1exafX6WoKog1eAm0LMGp2LBLDBJQJ7E=; b=x7FPB6Ngw6niaKBZZ2ojPh9GYGvP6K0s6hUscWZRCfCQHGOZWT8d9Bk4UbAP9Vdo1r+4GZ 9G7RaGBERARmxC34/TxUbKYyPh54VXjivzL6d7MZ5Hk1FIij4087aFPYt6BAqPr6y5Me9j H+O50KOeeO2zy15kqoj2p0g2GjfP1eZmrvUb/5aBoz2QjAGYqfxrfG3pTTVK8vIb5Zq8qt cQzM0ZWN+ot2W3BITt30T01/GLeysTSic9ekcXVYT3sU4T3WHsbzhhOa7Z5MlPpcxWszLC oBco6bt0cu4AU+WlydXCtLyReGBKAvKvy0F1SphsT6CKRGH9bfKsOLg1u2AwMg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1755638801; a=rsa-sha256; cv=none; b=UcKxZTLzJczLBTAyBl12mKZqhAX7LSaoYniWbkf71OGK4crrBoJUKasoWKsHCJ5QVZp/PS 0qVLauOXli7QSHv6RI1csudTZYlYERiuqcRw3DEQsjViqPMYHWpTStRkoZ2Eg6l0dXOn/I 90YxOj7F8HLQFM0qmKZhmYCbN+YiXBzFJNRS5sfyAoPd1JIS9XksfH9yI30OofOTpHTuTn 1RYpFtzeTWkYbMfLnaV7XE5XANtBUQiaHbZQLwPDFX7+I0Vsd5aiIkt/TEzPHAoOzOPFZG eFvc/ls2shO2rumkAWG2RUVmBe6f5CJJWBxeOwBMJBfCNaCP35C/8WJJIk9rDA== 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 4c62hd2LSzzlQG; Tue, 19 Aug 2025 21:26:41 +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 57JLQfAQ048385; Tue, 19 Aug 2025 21:26:41 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 57JLQfpT048382; Tue, 19 Aug 2025 21:26:41 GMT (envelope-from git) Date: Tue, 19 Aug 2025 21:26:41 GMT Message-Id: <202508192126.57JLQfpT048382@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 47d1788c2e98 - main - libc: mark ai_errlist as const 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@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/main X-Git-Reftype: branch X-Git-Commit: 47d1788c2e984f99521fd5b31194f96d94bf8a6b Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=47d1788c2e984f99521fd5b31194f96d94bf8a6b commit 47d1788c2e984f99521fd5b31194f96d94bf8a6b Author: Konstantin Belousov AuthorDate: 2025-08-19 02:57:34 +0000 Commit: Konstantin Belousov CommitDate: 2025-08-19 21:22:30 +0000 libc: mark ai_errlist as const Reviewed by: emaste, glebius Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D52010 --- lib/libc/net/gai_strerror.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libc/net/gai_strerror.c b/lib/libc/net/gai_strerror.c index d2f679a6782f..8d3501197c73 100644 --- a/lib/libc/net/gai_strerror.c +++ b/lib/libc/net/gai_strerror.c @@ -45,7 +45,7 @@ * Entries EAI_ADDRFAMILY (1) and EAI_NODATA (7) were omitted from RFC 3493, * but are or may be used as extensions or in old code. */ -static const char *ai_errlist[] = { +static const char *const ai_errlist[] = { [0] = "Success", [EAI_ADDRFAMILY] = "Address family for hostname not supported", [EAI_AGAIN] = "Name could not be resolved at this time",