diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2007-12-03 21:25:06 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2007-12-21 05:47:42 +0100 |
commit | 2f8dc4f48f1802baa3405e7803563f6840e0d1b3 (patch) | |
tree | a479c7df067cb698134616bc6be8fa2fd76c7452 /source4/libcli/raw/clitransport.c | |
parent | c9f0011bc57e6536f4ec130784d15609e71aa694 (diff) | |
download | samba-2f8dc4f48f1802baa3405e7803563f6840e0d1b3.tar.gz samba-2f8dc4f48f1802baa3405e7803563f6840e0d1b3.tar.bz2 samba-2f8dc4f48f1802baa3405e7803563f6840e0d1b3.zip |
r26266: Remove more global_loadparm uses.
(This used to be commit 99113075c4a96679bcec4f4d6bba4acb3dee4245)
Diffstat (limited to 'source4/libcli/raw/clitransport.c')
-rw-r--r-- | source4/libcli/raw/clitransport.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source4/libcli/raw/clitransport.c b/source4/libcli/raw/clitransport.c index 0bf805910e..11df6c6c96 100644 --- a/source4/libcli/raw/clitransport.c +++ b/source4/libcli/raw/clitransport.c @@ -73,7 +73,9 @@ static NTSTATUS smbcli_transport_finish_recv(void *private, DATA_BLOB blob); */ struct smbcli_transport *smbcli_transport_init(struct smbcli_socket *sock, TALLOC_CTX *parent_ctx, - bool primary) + bool primary, + int max_xmit, + int max_mux) { struct smbcli_transport *transport; @@ -88,8 +90,8 @@ struct smbcli_transport *smbcli_transport_init(struct smbcli_socket *sock, transport->negotiate.protocol = PROTOCOL_NT1; transport->options.use_spnego = lp_use_spnego(global_loadparm) && lp_nt_status_support(global_loadparm); - transport->options.max_xmit = lp_max_xmit(global_loadparm); - transport->options.max_mux = lp_maxmux(global_loadparm); + transport->options.max_xmit = max_xmit; + transport->options.max_mux = max_mux; transport->options.request_timeout = SMB_REQUEST_TIMEOUT; transport->negotiate.max_xmit = transport->options.max_xmit; |