mirror of
https://github.com/moparisthebest/curl
synced 2024-12-23 00:28:48 -05:00
Use ISDIGIT instead of isdigit; fixes a gcc warning.
This commit is contained in:
parent
f58ba5ab1c
commit
84fcff79f4
@ -215,7 +215,7 @@ static int fake_hostent(const char *name, int family, ares_host_callback callbac
|
|||||||
const char *p;
|
const char *p;
|
||||||
for (p = name; *p; p++)
|
for (p = name; *p; p++)
|
||||||
{
|
{
|
||||||
if (!isdigit(*p) && *p != '.') {
|
if (!ISDIGIT(*p) && *p != '.') {
|
||||||
return 0;
|
return 0;
|
||||||
} else if (*p == '.') {
|
} else if (*p == '.') {
|
||||||
numdots++;
|
numdots++;
|
||||||
|
@ -44,6 +44,7 @@
|
|||||||
#include <sys/filio.h>
|
#include <sys/filio.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <assert.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user