Skip to content

Commit 6eb5a68

Browse files
LaurentChardondjmdjm
authored andcommitted
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.
1 parent fd7d4b2 commit 6eb5a68

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

openbsd-compat/fake-rfc2553.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,13 @@ gai_strerror(int err)
9494
case EAI_NODATA:
9595
return ("no address associated with name");
9696
case EAI_MEMORY:
97-
return ("memory allocation failure.");
97+
return ("memory allocation failure");
9898
case EAI_NONAME:
99-
return ("nodename nor servname provided, or not known");
99+
return ("name or service is not known");
100100
case EAI_FAMILY:
101101
return ("ai_family not supported");
102102
default:
103-
return ("unknown/invalid error.");
103+
return ("unknown/invalid error");
104104
}
105105
}
106106
#endif /* !HAVE_GAI_STRERROR */

0 commit comments

Comments
 (0)