summaryrefslogtreecommitdiff
path: root/source4/rpc_server
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2008-02-04 21:58:29 +1100
committerAndrew Bartlett <abartlet@samba.org>2008-02-04 21:58:29 +1100
commit0f8eeb81ec109cde681961614fb690f8373fa9c6 (patch)
tree03d3fe8f2a594cb291a3ecd10ab5c4a367cca556 /source4/rpc_server
parentb3c5fbec47739ee2bb26f900d1f564a36dc3ad82 (diff)
downloadsamba-0f8eeb81ec109cde681961614fb690f8373fa9c6.tar.gz
samba-0f8eeb81ec109cde681961614fb690f8373fa9c6.tar.bz2
samba-0f8eeb81ec109cde681961614fb690f8373fa9c6.zip
Remove useless layer of indirection, where every service called
task_service_init() manually. Now this is called from service.c for all services. Andrew Bartlett (This used to be commit 9c9a4731cafd0dcf6c8523a7b06759cd4f14e4db)
Diffstat (limited to 'source4/rpc_server')
-rw-r--r--source4/rpc_server/service_rpc.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/source4/rpc_server/service_rpc.c b/source4/rpc_server/service_rpc.c
index 855e120ced..ddcf1c2a99 100644
--- a/source4/rpc_server/service_rpc.c
+++ b/source4/rpc_server/service_rpc.c
@@ -457,18 +457,6 @@ failed:
task_server_terminate(task, "Failed to startup dcerpc server task");
}
-/*
- called on startup of the smb server service It's job is to start
- listening on all configured sockets
-*/
-static NTSTATUS dcesrv_init(struct event_context *event_context,
- struct loadparm_context *lp_ctx,
- const struct model_ops *model_ops)
-{
- return task_server_startup(event_context, lp_ctx, "rpc",
- model_ops, dcesrv_task_init);
-}
-
NTSTATUS server_service_rpc_init(void)
{
init_module_fn static_init[] = { STATIC_dcerpc_server_MODULES };
@@ -479,5 +467,5 @@ NTSTATUS server_service_rpc_init(void)
talloc_free(shared_init);
- return register_server_service("rpc", dcesrv_init);
+ return register_server_service("rpc", dcesrv_task_init);
}