diff options
Diffstat (limited to 'examples/IPC_SAP/SOCK_SAP')
-rw-r--r-- | examples/IPC_SAP/SOCK_SAP/C-inclient.cpp | 2 | ||||
-rw-r--r-- | examples/IPC_SAP/SOCK_SAP/CPP-inclient.cpp | 2 | ||||
-rw-r--r-- | examples/IPC_SAP/SOCK_SAP/CPP-inserver-fancy.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/examples/IPC_SAP/SOCK_SAP/C-inclient.cpp b/examples/IPC_SAP/SOCK_SAP/C-inclient.cpp index e4cf8997857..082dfb1f6dc 100644 --- a/examples/IPC_SAP/SOCK_SAP/C-inclient.cpp +++ b/examples/IPC_SAP/SOCK_SAP/C-inclient.cpp @@ -49,7 +49,7 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[]) } // Determine IP address of the server. - if ((hp = ACE_OS::gethostbyname (ACE_TEXT_ALWAYS_CHAR(host))) == 0) + if ((hp = ACE_OS::gethostbyname (ACE_TEXT_TO_CHAR_IN(host))) == 0) ACE_OS::perror (ACE_TEXT("gethostbyname")), ACE_OS::exit (1); // Set up the address information to contact the server. diff --git a/examples/IPC_SAP/SOCK_SAP/CPP-inclient.cpp b/examples/IPC_SAP/SOCK_SAP/CPP-inclient.cpp index 3428b02cd12..e91668e205f 100644 --- a/examples/IPC_SAP/SOCK_SAP/CPP-inclient.cpp +++ b/examples/IPC_SAP/SOCK_SAP/CPP-inclient.cpp @@ -115,7 +115,7 @@ Options::read (void *buf, size_t len, size_t &iteration) int Options::parse_args (int argc, ACE_TCHAR *argv[]) { - ACE_Get_Opt getopt (argc, argv, ACE_TEXT("2h:i:m:p:q:st:T:"), 1); + ACE_Get_Arg_Opt<ACE_TCHAR> getopt (argc, argv, ACE_TEXT("2h:i:m:p:q:st:T:"), 1); for (int c; (c = getopt ()) != -1; ) switch (c) diff --git a/examples/IPC_SAP/SOCK_SAP/CPP-inserver-fancy.cpp b/examples/IPC_SAP/SOCK_SAP/CPP-inserver-fancy.cpp index 43df0572f74..46dd0049da2 100644 --- a/examples/IPC_SAP/SOCK_SAP/CPP-inserver-fancy.cpp +++ b/examples/IPC_SAP/SOCK_SAP/CPP-inserver-fancy.cpp @@ -163,7 +163,7 @@ Options::Options (void) int Options::parse_args (int argc, ACE_TCHAR *argv[]) { - ACE_Get_Opt getopt (argc, argv, ACE_TEXT("p:r:v"), 1); + ACE_Get_Arg_Opt<ACE_TCHAR> getopt (argc, argv, ACE_TEXT("p:r:v"), 1); for (int c; (c = getopt ()) != -1; ) switch (c) |