diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-01-05 19:03:43 -0600 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2008-01-05 13:06:03 -0600 |
commit | df408d056ec03f2abe08ce0ea487e1875b90e7bf (patch) | |
tree | 68cb7b83f12d50d8536acef9c1fed74d22ad9f54 /source4/wrepl_server | |
parent | 01c79091924602bb5c3f1c0c823b2577c4708f6a (diff) | |
download | samba-df408d056ec03f2abe08ce0ea487e1875b90e7bf.tar.gz samba-df408d056ec03f2abe08ce0ea487e1875b90e7bf.tar.bz2 samba-df408d056ec03f2abe08ce0ea487e1875b90e7bf.zip |
r26672: Janitorial: Remove uses of global_loadparm.
(This used to be commit 18cd08623eaad7d2cd63b82ea5275d4dfd21cf00)
Diffstat (limited to 'source4/wrepl_server')
-rw-r--r-- | source4/wrepl_server/wrepl_in_connection.c | 7 | ||||
-rw-r--r-- | source4/wrepl_server/wrepl_server.c | 3 |
2 files changed, 7 insertions, 3 deletions
diff --git a/source4/wrepl_server/wrepl_in_connection.c b/source4/wrepl_server/wrepl_in_connection.c index 721a005213..34d94d73a6 100644 --- a/source4/wrepl_server/wrepl_in_connection.c +++ b/source4/wrepl_server/wrepl_in_connection.c @@ -294,7 +294,9 @@ NTSTATUS wreplsrv_setup_sockets(struct wreplsrv_service *service, struct loadpar */ for(i = 0; i < num_interfaces; i++) { address = iface_n_ip(ifaces, i); - status = stream_setup_socket(task->event_ctx, model_ops, &wreplsrv_stream_ops, + status = stream_setup_socket(task->event_ctx, + task->lp_ctx, model_ops, + &wreplsrv_stream_ops, "ipv4", address, &port, lp_socket_options(task->lp_ctx), service); @@ -306,7 +308,8 @@ NTSTATUS wreplsrv_setup_sockets(struct wreplsrv_service *service, struct loadpar } } else { address = lp_socket_address(lp_ctx); - status = stream_setup_socket(task->event_ctx, model_ops, &wreplsrv_stream_ops, + status = stream_setup_socket(task->event_ctx, task->lp_ctx, + model_ops, &wreplsrv_stream_ops, "ipv4", address, &port, lp_socket_options(task->lp_ctx), service); if (!NT_STATUS_IS_OK(status)) { diff --git a/source4/wrepl_server/wrepl_server.c b/source4/wrepl_server/wrepl_server.c index 7d4be3e1b5..50ef7e8550 100644 --- a/source4/wrepl_server/wrepl_server.c +++ b/source4/wrepl_server/wrepl_server.c @@ -510,7 +510,8 @@ static NTSTATUS wreplsrv_init(struct event_context *event_ctx, struct loadparm_c return NT_STATUS_OK; } - return task_server_startup(event_ctx, model_ops, wreplsrv_task_init); + return task_server_startup(event_ctx, lp_ctx, + model_ops, wreplsrv_task_init); } /* |