-/* $Id$ */
/* Copyright 1998 by the Massachusetts Institute of Technology.
*
* without express or implied warranty.
*/
-#include "setup.h"
+#include "ares_setup.h"
#include <assert.h>
#include "ares.h"
"Out of memory",
"Channel is being destroyed",
"Misformatted string",
- "Illegal flags specified"
+ "Illegal flags specified",
+ "Given hostname is not numeric",
+ "Illegal hints flags specified",
+ "c-ares library initialization not yet performed",
+ "Error loading iphlpapi.dll",
+ "Could not find GetNetworkParams function",
+ "DNS query cancelled"
};
- assert(code >= 0 && code < (int)(sizeof(errtext) / sizeof(*errtext)));
- return errtext[code];
+ if(code >= 0 && code < (int)(sizeof(errtext) / sizeof(*errtext)))
+ return errtext[code];
+ else
+ return "unknown";
}