summaryrefslogtreecommitdiff
path: root/source4/libcli
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-12-02 16:20:32 +0100
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:47:00 +0100
commit8d8ad81437555affe0ce189ab9b7049501c708b1 (patch)
treeb5e2aa75ea1c4ad42b8ff74e70d4c84bd10d7535 /source4/libcli
parent25f286fdfe0cf7ac800ccf3ac62ee5e1d2ceb583 (diff)
downloadsamba-8d8ad81437555affe0ce189ab9b7049501c708b1.tar.gz
samba-8d8ad81437555affe0ce189ab9b7049501c708b1.tar.bz2
samba-8d8ad81437555affe0ce189ab9b7049501c708b1.zip
r26224: Remove another use of global_loadparm.
(This used to be commit bd12560432b3a8faf124ae1f562b725f3b6686d9)
Diffstat (limited to 'source4/libcli')
-rw-r--r--source4/libcli/cliconnect.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source4/libcli/cliconnect.c b/source4/libcli/cliconnect.c
index a56100fc80..d806653758 100644
--- a/source4/libcli/cliconnect.c
+++ b/source4/libcli/cliconnect.c
@@ -55,10 +55,9 @@ bool smbcli_transport_establish(struct smbcli_state *cli,
}
/* wrapper around smb_raw_negotiate() */
-NTSTATUS smbcli_negprot(struct smbcli_state *cli)
+NTSTATUS smbcli_negprot(struct smbcli_state *cli, int maxprotocol)
{
- return smb_raw_negotiate(cli->transport,
- lp_cli_maxprotocol(global_loadparm));
+ return smb_raw_negotiate(cli->transport, maxprotocol);
}
/* wrapper around smb_raw_sesssetup() */