From dfd7c6ca784d3bfd79aa1c238b22e3e9a778334c Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 2 Sep 2022 11:00:09 -0700 Subject: [PATCH] s3: libsmb: Cleanup - remove unused fname_src parameter from cli_dfs_target_check(). Signed-off-by: Jeremy Allison Reviewed-by: Noel Power --- source3/libsmb/cli_smb2_fnum.c | 1 - source3/libsmb/clidfs.c | 1 - source3/libsmb/clifile.c | 4 ---- source3/libsmb/proto.h | 1 - 4 files changed, 7 deletions(-) diff --git a/source3/libsmb/cli_smb2_fnum.c b/source3/libsmb/cli_smb2_fnum.c index 1b8819cc6f2..5a12fcbfb99 100644 --- a/source3/libsmb/cli_smb2_fnum.c +++ b/source3/libsmb/cli_smb2_fnum.c @@ -3213,7 +3213,6 @@ struct tevent_req *cli_smb2_rename_send( */ status = cli_dfs_target_check(state, cli, - fname_src, fname_dst, &fname_dst); if (tevent_req_nterror(req, status)) { diff --git a/source3/libsmb/clidfs.c b/source3/libsmb/clidfs.c index 1e73aa221dc..4fa1fc4aa45 100644 --- a/source3/libsmb/clidfs.c +++ b/source3/libsmb/clidfs.c @@ -1261,7 +1261,6 @@ bool cli_check_msdfs_proxy(TALLOC_CTX *ctx, NTSTATUS cli_dfs_target_check(TALLOC_CTX *mem_ctx, struct cli_state *cli, - const char *fname_src, const char *fname_dst, const char **fname_dst_out) { diff --git a/source3/libsmb/clifile.c b/source3/libsmb/clifile.c index 11d919a51bf..2831d0457f1 100644 --- a/source3/libsmb/clifile.c +++ b/source3/libsmb/clifile.c @@ -1240,7 +1240,6 @@ static struct tevent_req *cli_smb1_rename_send(TALLOC_CTX *mem_ctx, */ status = cli_dfs_target_check(state, cli, - fname_src, fname_dst, &fname_dst); if (!NT_STATUS_IS_OK(status)) { @@ -1344,7 +1343,6 @@ static struct tevent_req *cli_cifs_rename_send(TALLOC_CTX *mem_ctx, */ status = cli_dfs_target_check(state, cli, - fname_src, fname_dst, &fname_dst); if (tevent_req_nterror(req, status)) { @@ -1557,7 +1555,6 @@ static struct tevent_req *cli_ntrename_internal_send(TALLOC_CTX *mem_ctx, */ status = cli_dfs_target_check(state, cli, - fname_src, fname_dst, &fname_dst); if (tevent_req_nterror(req, status)) { @@ -1734,7 +1731,6 @@ static struct tevent_req *cli_smb2_hardlink_send( */ status = cli_dfs_target_check(state, cli, - fname_src, fname_dst, &fname_dst); if (tevent_req_nterror(req, status)) { diff --git a/source3/libsmb/proto.h b/source3/libsmb/proto.h index 46db49015fb..6f6ad57173f 100644 --- a/source3/libsmb/proto.h +++ b/source3/libsmb/proto.h @@ -165,7 +165,6 @@ bool cli_check_msdfs_proxy(TALLOC_CTX *ctx, NTSTATUS cli_dfs_target_check(TALLOC_CTX *mem_ctx, struct cli_state *cli, - const char *fname_src, const char *fname_dst, const char **fname_dst_out);