add missing strings for existing error codes

This commit is contained in:
Yang Tse 2007-02-02 16:01:15 +00:00
parent ef6f24a7ce
commit 8260243be1

View File

@ -41,7 +41,9 @@ const char *ares_strerror(int code)
"Out of memory", "Out of memory",
"Channel is being destroyed", "Channel is being destroyed",
"Misformatted string", "Misformatted string",
"Illegal flags specified" "Illegal flags specified",
"Given hostname is not numeric",
"Illegal hints flags specified"
}; };
assert(code >= 0 && code < (int)(sizeof(errtext) / sizeof(*errtext))); assert(code >= 0 && code < (int)(sizeof(errtext) / sizeof(*errtext)));