diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-10-15 16:29:48 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-10-15 16:29:48 +0000 |
commit | 65ce815988ba8e16794bfb75ff3c3137ff539a7f (patch) | |
tree | b917adb52171426c00dc0c07981598a6311a85e2 /examples | |
parent | 664555d073a92098c583c74e171ff75ac6a2f67b (diff) | |
download | ATCD-65ce815988ba8e16794bfb75ff3c3137ff539a7f.tar.gz |
(main): wrapped "return 0" with ACE_NOTREACHED.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/IPC_SAP/TLI_SAP/db-server.cpp | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/examples/IPC_SAP/TLI_SAP/db-server.cpp b/examples/IPC_SAP/TLI_SAP/db-server.cpp index 58b1f02663a..ed8d75f6533 100644 --- a/examples/IPC_SAP/TLI_SAP/db-server.cpp +++ b/examples/IPC_SAP/TLI_SAP/db-server.cpp @@ -32,8 +32,8 @@ lookup_name (ACE_HANDLE handle) {127, "Rush Limbaugh"}, {128, "Michael Jackson"}, {129, "George Burns"}, - {130, "Paula Jones"}, - {0, ""} + {130, "Paula Jones"}, + {0, ""} }; int n; @@ -58,8 +58,8 @@ lookup_name (ACE_HANDLE handle) for (index = 0; found == 0 && employee_db[index].emp_id; index++) if (employee_id == employee_db[index].emp_id) { - found = 1; - n = ACE_OS::sprintf (sendline, "%s", employee_db[index].emp_name); + found = 1; + n = ACE_OS::sprintf (sendline, "%s", employee_db[index].emp_name); } if (found == 0) @@ -91,14 +91,15 @@ main (int argc, char *argv[]) for (;;) { if (server.accept (new_stream) == -1) - ::t_error ("server.accept error"); + ::t_error ("server.accept error"); if (thr_mgr.spawn (ACE_THR_FUNC (lookup_name), - (void *) new_stream.get_handle (), - THR_DETACHED) == -1) - ACE_DEBUG ((LM_ERROR, "server: can't create worker thread %d\n")); + (void *) new_stream.get_handle (), + THR_DETACHED) == -1) + ACE_DEBUG ((LM_ERROR, "server: can't create worker thread %d\n")); } - return 0; + + ACE_NOTREACHED (return 0); } #else #include <stdio.h> |