From: Stefan Metzmacher Date: Fri, 3 Jul 2020 09:54:42 +0000 (+0200) Subject: s4:libcli/smb2: add const to struct smbcli_options *options for smb2_connect() X-Git-Tag: samba-4.13.0rc1~44 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce7eaca7353289ee4959406a39536a1efbc9d2ac;p=thirdparty%2Fsamba.git s4:libcli/smb2: add const to struct smbcli_options *options for smb2_connect() It will just be passed to smb2_connect_ext(), which already takes a const pointer. BUG: https://bugzilla.samba.org/show_bug.cgi?id=11897 Signed-off-by: Stefan Metzmacher Reviewed-by: Günther Deschner --- diff --git a/source4/libcli/smb2/connect.c b/source4/libcli/smb2/connect.c index 98aa148ea2c..6fc3993a4e8 100644 --- a/source4/libcli/smb2/connect.c +++ b/source4/libcli/smb2/connect.c @@ -408,7 +408,7 @@ NTSTATUS smb2_connect(TALLOC_CTX *mem_ctx, struct cli_credentials *credentials, struct smb2_tree **tree, struct tevent_context *ev, - struct smbcli_options *options, + const struct smbcli_options *options, const char *socket_options, struct gensec_settings *gensec_settings) {