OSF DCE Application Development Guide--Introduction and Style Guide

A Sample Application
if (*status != error_status_ok)
{
print_server_error("rpc_server_register_if()", *status);
return;
}
DCE_SVC_DEBUG((smp_svc_handle, smp_s_server, svc_c_debug7,
"Exiting server_acl_mgr_setup()"));
}
/******
*
* server_acl_mgr_close -- Called at cleanup time to close
* the three ACL databases.
*
*
* Called from main().
*
******/
void server_acl_mgr_close(
dce_db_handle_t *db_acl, /* ACL UUID-indexed database. */
dce_db_handle_t *db_object, /* Object UUID-indexed database. */
dce_db_handle_t *db_name, /* Name-indexed database. */
unsigned32 *status)
{
DCE_SVC_DEBUG((smp_svc_handle, smp_s_server, svc_c_debug7,
"Entering server_acl_mgr_close()"));
*status = error_status_ok;
/* Close the ACL UUID-indexed database... */
DCE_SVC_DEBUG((smp_svc_handle, smp_s_server, svc_c_debug4,
"Calling dce_db_close()"));
dce_db_close(db_acl, status);
if (*status != error_status_ok)
{
print_server_error("dce_db_close()", *status);
return;
}
124246 Tandem Computers Incorporated A 53