int i, rv;
int i; #endif int rv;
int test_1 (char *address, char *port, int ok){  struct sockaddr *sa;  struct sockaddr_in *sai;  struct sockaddr_in6 *sai6;  int i, rv;  printf ("test_1 (\"%s\", \"%s\") ", address, port);  rv = text2sockaddr (address, port, &sa) == ok;  printf (rv ? "OK" : "FAIL");  printf ("\n");#ifdef DEBUG  printf ("af %d len %d ", sa->sa_family, sa->sa_len);  if (sa->sa_family == AF_INET)    {      sai = (struct sockaddr_in *)sa;      printf ("addr %08x port %d\n", ntohl (sai->sin_addr.s_addr),	      ntohs (sai->sin_port));    }  else    {      sai6 = (struct sockaddr_in6 *)sa;      printf ("addr ");      for (i = 0; i < sizeof sai6->sin6_addr; i++)	printf ("%02x", sai6->sin6_addr.s6_addr[i]);      printf (" port %d\n", ntohs (sai6->sin6_port));    }  return rv;#endif}