diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2004-03-14 12:27:34 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2004-03-14 12:27:34 +0000 |
commit | 364479cd720831278f1f42f8f9ce60d1343b18d2 (patch) | |
tree | 17735c1014a6f7da289ebd0a5657aaecd89e78ec /examples | |
parent | 276f5f21d852027e651e4b845921becb1a53aa0d (diff) | |
download | ATCD-364479cd720831278f1f42f8f9ce60d1343b18d2.tar.gz |
ChangeLogTag: Sun Mar 14 12:27:16 UTC 2004 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/IPC_SAP/SPIPE_SAP/NPClient.cpp | 5 | ||||
-rw-r--r-- | examples/IPC_SAP/SPIPE_SAP/NPServer.cpp | 5 |
2 files changed, 4 insertions, 6 deletions
diff --git a/examples/IPC_SAP/SPIPE_SAP/NPClient.cpp b/examples/IPC_SAP/SPIPE_SAP/NPClient.cpp index 1c8c2c3dede..49dd6ef6f63 100644 --- a/examples/IPC_SAP/SPIPE_SAP/NPClient.cpp +++ b/examples/IPC_SAP/SPIPE_SAP/NPClient.cpp @@ -9,7 +9,7 @@ ACE_RCSID(SPIPE_SAP, NPClient, "$Id$") #if defined (ACE_WIN32) -#define MAKE_PIPE_NAME(X) "\\\\.\\pipe\\"#X +#define MAKE_PIPE_NAME(X) "\\\\.\\pipe\\" X #else #define MAKE_PIPE_NAME(X) X #endif @@ -28,8 +28,7 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[]) char[size], 1); - const char *pipe_name = "acepipe"; - const char *rendezvous = MAKE_PIPE_NAME (pipe_name); + const char *rendezvous = MAKE_PIPE_NAME ("acepipe"); ACE_SPIPE_Stream cli_stream; ACE_SPIPE_Connector con; diff --git a/examples/IPC_SAP/SPIPE_SAP/NPServer.cpp b/examples/IPC_SAP/SPIPE_SAP/NPServer.cpp index 762a634b015..3ebe777112b 100644 --- a/examples/IPC_SAP/SPIPE_SAP/NPServer.cpp +++ b/examples/IPC_SAP/SPIPE_SAP/NPServer.cpp @@ -8,7 +8,7 @@ ACE_RCSID(SPIPE_SAP, NPServer, "$Id$") #if defined (ACE_WIN32) -#define MAKE_PIPE_NAME(X) "\\\\.\\pipe\\"#X +#define MAKE_PIPE_NAME(X) "\\\\.\\pipe\\" X #else #define MAKE_PIPE_NAME(X) X #endif @@ -20,8 +20,7 @@ main (int /* argc */, ACE_TCHAR * /* argv */ []) ACE_SPIPE_Stream new_stream; char buf[BUFSIZ]; int n; - const char *pipe_name = "acepipe"; - const char *rendezvous = MAKE_PIPE_NAME (pipe_name); + const char *rendezvous = MAKE_PIPE_NAME ("acepipe"); // Initialize named pipe listener. |