aboutsummaryrefslogtreecommitdiff
path: root/resolv/tst-aton.c
diff options
context:
space:
mode:
Diffstat (limited to 'resolv/tst-aton.c')
-rw-r--r--resolv/tst-aton.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/resolv/tst-aton.c b/resolv/tst-aton.c
index 3469b19..6cb5960 100644
--- a/resolv/tst-aton.c
+++ b/resolv/tst-aton.c
@@ -39,7 +39,7 @@ static struct tests
{ "1.2.256.4", 0, 0 },
{ "1.2.3.0x100", 0, 0 },
{ "323543357756889", 0, 0 },
- { "10.1.2.3.4", 0, 0},
+ { "10.1.2.3.4", 0, 0},
};
@@ -47,13 +47,13 @@ int
main (int argc, char *argv[])
{
int result = 0;
- int cnt;
+ size_t cnt;
for (cnt = 0; cnt < sizeof (tests) / sizeof (tests[0]); ++cnt)
{
struct in_addr addr;
- if (inet_aton (tests[cnt].input, &addr) != tests[cnt].valid)
+ if ((int) inet_aton (tests[cnt].input, &addr) != tests[cnt].valid)
{
if (tests[cnt].valid)
printf ("\"%s\" not seen as valid IP address\n", tests[cnt].input);