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
This commit is contained in:
Konstantin Belousov
2025-08-19 05:57:34 +03:00
parent 632f705170
commit 47d1788c2e
+1 -1
View File
@@ -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",