Commit 8260243b authored by Yang Tse's avatar Yang Tse
Browse files

add missing strings for existing error codes

parent ef6f24a7
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -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)));