summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2004-03-14 12:27:34 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2004-03-14 12:27:34 +0000
commit34c795c61925ec5d10d3fb702da80560e533e282 (patch)
tree17735c1014a6f7da289ebd0a5657aaecd89e78ec
parent18e3f14b997c15094950505be276facc09dee2f8 (diff)
downloadATCD-34c795c61925ec5d10d3fb702da80560e533e282.tar.gz
ChangeLogTag: Sun Mar 14 12:27:16 UTC 2004 Johnny Willemsen <jwillemsen@remedy.nl>
-rw-r--r--examples/IPC_SAP/SPIPE_SAP/NPClient.cpp5
-rw-r--r--examples/IPC_SAP/SPIPE_SAP/NPServer.cpp5
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.