diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-04-15 17:59:07 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-04-15 17:59:07 +0000 |
commit | 5b00be7522f440f47442773bcec062fbdefd833b (patch) | |
tree | 0a7677fadf3dd75e2bdbb4f222ea1ee7523ba5ab /examples | |
parent | 8b6d62ba43da3cfb84d656d9b498211641624194 (diff) | |
download | ATCD-5b00be7522f440f47442773bcec062fbdefd833b.tar.gz |
(main): moved declaration of local variable "handle" up before its first use
Diffstat (limited to 'examples')
-rw-r--r-- | examples/IPC_SAP/SPIPE_SAP/server.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/IPC_SAP/SPIPE_SAP/server.cpp b/examples/IPC_SAP/SPIPE_SAP/server.cpp index d1d86f5ca74..b35d427b97d 100644 --- a/examples/IPC_SAP/SPIPE_SAP/server.cpp +++ b/examples/IPC_SAP/SPIPE_SAP/server.cpp @@ -16,6 +16,7 @@ main (int argc, char *argv[]) ACE_SPIPE_Acceptor peer_acceptor; ACE_SPIPE_Stream new_stream; struct pollfd poll_array[MAX_HANDLES]; + ACE_HANDLE handle; for (handle = 0; handle < MAX_HANDLES; handle++) { @@ -34,8 +35,6 @@ main (int argc, char *argv[]) if (s_handle == -1) ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "peer_acceptor.open"), -1); - ACE_HANDLE handle; - poll_array[0].fd = s_handle; for (int width = 1;;) |