Use ISDIGIT instead of isdigit; fixes a gcc warning.

This commit is contained in:
Steinar H. Gunderson
2007-09-29 21:57:05 +00:00
parent ff7137ad74
commit 60519063ea
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -215,7 +215,7 @@ static int fake_hostent(const char *name, int family, ares_host_callback callbac
const char *p;
for (p = name; *p; p++)
{
if (!isdigit(*p) && *p != '.') {
if (!ISDIGIT(*p) && *p != '.') {
return 0;
} else if (*p == '.') {
numdots++;