s3:libsmb: remove unused 'bool show_hdr' from cli_cm_open()
authorStefan Metzmacher <metze@samba.org>
Fri, 23 Jun 2017 15:03:05 +0000 (17:03 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 27 Jun 2017 14:57:47 +0000 (16:57 +0200)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/client/client.c
source3/lib/netapi/cm.c
source3/libsmb/clidfs.c
source3/libsmb/proto.h

index df36028a78e51e8bba5ec8900d7ff85aad16e1f9..c431a01146653bc5144e7324232d31f6d9bf0077 100644 (file)
@@ -5155,7 +5155,7 @@ static int process_command_string(const char *cmd_in)
                status = cli_cm_open(talloc_tos(), NULL,
                                     have_ip ? dest_ss_str : desthost,
                                     service, popt_get_cmdline_auth_info(),
-                                    false, smb_encrypt,
+                                    smb_encrypt,
                                     max_protocol, port, name_type,
                                     &cli);
                if (!NT_STATUS_IS_OK(status)) {
@@ -5586,7 +5586,7 @@ static int process(const char *base_directory)
        status = cli_cm_open(talloc_tos(), NULL,
                             have_ip ? dest_ss_str : desthost,
                             service, popt_get_cmdline_auth_info(),
-                            false, smb_encrypt, max_protocol, port,
+                            smb_encrypt, max_protocol, port,
                             name_type, &cli);
        if (!NT_STATUS_IS_OK(status)) {
                return 1;
@@ -5623,7 +5623,7 @@ static int do_host_query(const char *query_host)
        status = cli_cm_open(talloc_tos(), NULL,
                             have_ip ? dest_ss_str : query_host,
                             "IPC$", popt_get_cmdline_auth_info(),
-                            false, smb_encrypt, max_protocol, port,
+                            smb_encrypt, max_protocol, port,
                             name_type, &cli);
        if (!NT_STATUS_IS_OK(status)) {
                return 1;
@@ -5662,7 +5662,7 @@ static int do_host_query(const char *query_host)
                status = cli_cm_open(talloc_tos(), NULL,
                                     have_ip ? dest_ss_str : query_host,
                                     "IPC$", popt_get_cmdline_auth_info(),
-                                    false, smb_encrypt, max_proto,
+                                    smb_encrypt, max_proto,
                                     NBT_SMB_PORT, name_type, &cli);
                if (!NT_STATUS_IS_OK(status)) {
                        cli = NULL;
@@ -5698,7 +5698,7 @@ static int do_tar_op(const char *base_directory)
                status = cli_cm_open(talloc_tos(), NULL,
                                     have_ip ? dest_ss_str : desthost,
                                     service, popt_get_cmdline_auth_info(),
-                                    false, smb_encrypt, max_protocol,
+                                    smb_encrypt, max_protocol,
                                     port, name_type, &cli);
                if (!NT_STATUS_IS_OK(status)) {
             ret = 1;
index 57e44ac778dee8caa72db0d100054fbdce1ba4a2..95132f28f05c64a82166a86371c75ce6cb3ba85e 100644 (file)
@@ -110,7 +110,7 @@ static WERROR libnetapi_open_ipc_connection(struct libnetapi_ctx *ctx,
        status = cli_cm_open(ctx, NULL,
                             server_name, "IPC$",
                             auth_info,
-                            false, false,
+                            false,
                             lp_client_ipc_max_protocol(),
                             0, 0x20, &cli_ipc);
        if (!NT_STATUS_IS_OK(status)) {
index 017e3689a8e6d65d35e3ea2f0f7879dd73e01b9b..207b3240f5e820ee990ec953878e961b94c025e5 100644 (file)
@@ -413,7 +413,6 @@ NTSTATUS cli_cm_open(TALLOC_CTX *ctx,
                                const char *server,
                                const char *share,
                                const struct user_auth_info *auth_info,
-                               bool show_hdr,
                                bool force_encrypt,
                                int max_protocol,
                                int port,
@@ -974,7 +973,6 @@ NTSTATUS cli_resolve_path(TALLOC_CTX *ctx,
                             smbXcli_conn_remote_name(rootcli->conn),
                             "IPC$",
                             dfs_auth_info,
-                            false,
                             smb1cli_conn_encryption_on(rootcli->conn),
                             smbXcli_conn_protocol(rootcli->conn),
                             0,
index fb122b9493a5d7ee414adbac750d5841d440deca..47b9cf190bde30b3f24486849bab66de8e39115b 100644 (file)
@@ -145,7 +145,6 @@ NTSTATUS cli_cm_open(TALLOC_CTX *ctx,
                                const char *server,
                                const char *share,
                                const struct user_auth_info *auth_info,
-                               bool show_hdr,
                                bool force_encrypt,
                                int max_protocol,
                                int port,