if (inet_aton (tests[cnt].input, &addr) != tests[cnt].valid)
if ((int) inet_aton (tests[cnt].input, &addr) != tests[cnt].valid)
main (int argc, char *argv[]){  int result = 0;  int 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 (tests[cnt].valid)	    printf ("\"%s\" not seen as valid IP address\n", tests[cnt].input);	  else	    printf ("\"%s\" seen as valid IP address\n", tests[cnt].input);	  result = 1;	}      else if (tests[cnt].valid && addr.s_addr != ntohl (tests[cnt].result))	{	  printf ("\"%s\" not converted correctly: is %08x, should be %08x\n",		  tests[cnt].input, addr.s_addr, tests[cnt].result);	  result = 1;	}    }  return result;}