diff options
author | brunsch <brunsch@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-10-22 22:20:09 +0000 |
---|---|---|
committer | brunsch <brunsch@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-10-22 22:20:09 +0000 |
commit | 807dc06a57a9df10cea98d16c940161f6a9ce430 (patch) | |
tree | b3479dc4330224c3b0b3e0bcf43286643b336b68 /tests/Conn_Test.cpp | |
parent | 22bfbe16ef5146ae2a5718dfbf5ddf71341b8952 (diff) | |
download | ATCD-807dc06a57a9df10cea98d16c940161f6a9ce430.tar.gz |
ChangeLogTag:Sun Oct 22 15:07:42 2000 Darrell Brunsch <brunsch@uci.edu>
Diffstat (limited to 'tests/Conn_Test.cpp')
-rw-r--r-- | tests/Conn_Test.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/Conn_Test.cpp b/tests/Conn_Test.cpp index 12cfcab0eea..1ca72aa5570 100644 --- a/tests/Conn_Test.cpp +++ b/tests/Conn_Test.cpp @@ -37,6 +37,8 @@ ACE_RCSID(tests, Conn_Test, "$Id$") +static const char ACE_ALPHABET[] = "abcdefghijklmnopqrstuvwxyz"; + // The following works around bugs with some operating systems, which // don't allow multiple threads/process to call accept() on the same // listen-mode port/socket. Also, note that since timed accept is @@ -247,7 +249,7 @@ Svc_Handler::send_data (void) { // Send data to server. - for (char *c = ACE_ALPHABET; *c != '\0'; c++) + for (const char *c = ACE_ALPHABET; *c != '\0'; c++) if (this->peer ().send_n (c, 1) == -1) ACE_ERROR ((LM_ERROR, ACE_TEXT ("(%P|%t) %p\n"), @@ -262,7 +264,7 @@ Svc_Handler::recv_data (void) ACE_Handle_Set handle_set; handle_set.set_bit (new_stream.get_handle ()); - char *t = ACE_ALPHABET; + const char *t = ACE_ALPHABET; // Read data from client (terminate on error). |