Use ISDIGIT instead of isdigit; fixes a gcc warning.

pull/1/head
Steinar H. Gunderson 18 years ago
parent ff7137ad74
commit 60519063ea
  1. 2
      ares_gethostbyname.c
  2. 1
      ares_process.c

@ -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++;

@ -44,6 +44,7 @@
#include <sys/filio.h>
#endif
#include <assert.h>
#include <string.h>
#include <stdlib.h>
#include <fcntl.h>

Loading…
Cancel
Save