summaryrefslogtreecommitdiff
path: root/tests/INET_Addr_Test.cpp
diff options
context:
space:
mode:
authordhinton <dhinton@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2003-05-18 19:17:36 +0000
committerdhinton <dhinton@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2003-05-18 19:17:36 +0000
commit3af82d10ad99eb8a8a1e9242f34d27e35f232db6 (patch)
treebd18581d6702960ad30d1eb9b7b662af649a3d3b /tests/INET_Addr_Test.cpp
parent46e86de7ab0abfc03504dd5d34e42283e27c568f (diff)
downloadATCD-3af82d10ad99eb8a8a1e9242f34d27e35f232db6.tar.gz
ChangeLogTag:Sun May 18 19:18:45 UTC 2003 Don Hinton <dhinton@dresystems.com>
Diffstat (limited to 'tests/INET_Addr_Test.cpp')
-rw-r--r--tests/INET_Addr_Test.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/INET_Addr_Test.cpp b/tests/INET_Addr_Test.cpp
index a444a92e57a..f48f99f51fa 100644
--- a/tests/INET_Addr_Test.cpp
+++ b/tests/INET_Addr_Test.cpp
@@ -29,7 +29,7 @@ int check_type_consistency (const ACE_INET_Addr &addr)
{
int family = -1;
- if (addr.get_type () == AF_INET)
+ if (addr.get_type () == AF_INET)
{
struct sockaddr_in *sa4 = (struct sockaddr_in *)addr.get_addr();
family = sa4->sin_family;
@@ -49,13 +49,13 @@ int check_type_consistency (const ACE_INET_Addr &addr)
ACE_TEXT ("and the sockaddr family (%d)\n"),
addr.get_type (),
family));
- return 1;
+ return 1;
}
return 0;
}
-int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
+int run_main (int argc, ACE_TCHAR *argv[])
{
ACE_UNUSED_ARG (argc);
ACE_UNUSED_ARG (argv);
@@ -64,7 +64,7 @@ int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
int status = 0; // Innocent until proven guilty
- const char *ipv4_addresses[] =
+ const char *ipv4_addresses[] =
{
"127.0.0.1", "138.38.180.251", "64.219.54.121", "192.0.0.1", "10.0.0.1", 0
};
@@ -72,7 +72,7 @@ int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
ACE_INET_Addr addr;
status |= check_type_consistency (addr);
- for (int i=0; ipv4_addresses[i] != 0; i++)
+ for (int i=0; ipv4_addresses[i] != 0; i++)
{
struct in_addr addrv4;
ACE_UINT32 addr32;
@@ -144,8 +144,8 @@ int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
addr.set (0, ACE_UINT32 (1), 1);
addr.set_addr (&sa4, sizeof(sa4));
status |= check_type_consistency (addr);
-
- if (addr.get_port_number () != 8080)
+
+ if (addr.get_port_number () != 8080)
{
ACE_ERROR ((LM_ERROR,
ACE_TEXT ("ACE_INET_Addr::set_addr() ")