openbsd-compat: reword EAI_NONAME error string

Reword the EAI_NONAME message in fake-rfc2553.c to make it
clearer and grammatically correct.

While there, remove a couple of stray periods from other error
strings to keep the messages consistent.

No functional change.
This commit is contained in:
Laurent Chardon
2026-03-28 04:22:54 -04:00
committed by Damien Miller
parent fd7d4b2b52
commit 6eb5a68c42

View File

@@ -94,13 +94,13 @@ gai_strerror(int err)
case EAI_NODATA:
return ("no address associated with name");
case EAI_MEMORY:
return ("memory allocation failure.");
return ("memory allocation failure");
case EAI_NONAME:
return ("nodename nor servname provided, or not known");
return ("name or service is not known");
case EAI_FAMILY:
return ("ai_family not supported");
default:
return ("unknown/invalid error.");
return ("unknown/invalid error");
}
}
#endif /* !HAVE_GAI_STRERROR */