Commit 84fcff79 authored by Steinar H. Gunderson's avatar Steinar H. Gunderson
Browse files

Use ISDIGIT instead of isdigit; fixes a gcc warning.

parent f58ba5ab
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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++;
+1 −0
Original line number Diff line number Diff line
@@ -44,6 +44,7 @@
#include <sys/filio.h>
#endif

#include <assert.h>
#include <string.h>
#include <stdlib.h>
#include <fcntl.h>