1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-22 22:04:08 +03:00

lib:registry: drop unused argument of reg_open_remote()

Drop 'struct auth_session_info *' argument of reg_open_remote()
which is actually unused (NULL passed by all of the callers).

Signed-off-by: Dmitry Antipov <dantipov@cloudlinux.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Joseph Sutton <josephsutton@catalyst.net.nz>

Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Thu Apr  6 16:46:03 UTC 2023 on atb-devel-224
This commit is contained in:
Dmitry Antipov 2023-03-17 13:06:52 +03:00 committed by Andreas Schneider
parent c50cde0cd5
commit e3b9e25233
4 changed files with 2 additions and 5 deletions

View File

@ -381,7 +381,6 @@ WERROR reg_open_samba(TALLOC_CTX *mem_ctx,
*/
WERROR reg_open_remote(TALLOC_CTX *mem_ctx,
struct registry_context **ctx,
struct auth_session_info *session_info,
struct cli_credentials *credentials,
struct loadparm_context *lp_ctx,
const char *location, struct tevent_context *ev);

View File

@ -538,7 +538,6 @@ static struct registry_operations reg_backend_rpc = {
_PUBLIC_ WERROR reg_open_remote(TALLOC_CTX *mem_ctx,
struct registry_context **ctx,
struct auth_session_info *session_info,
struct cli_credentials *credentials,
struct loadparm_context *lp_ctx,
const char *location, struct tevent_context *ev)

View File

@ -31,7 +31,7 @@ struct registry_context *reg_common_open_remote(const char *remote,
struct registry_context *h = NULL;
WERROR error;
error = reg_open_remote(NULL, &h, NULL, creds, lp_ctx, remote, ev_ctx);
error = reg_open_remote(NULL, &h, creds, lp_ctx, remote, ev_ctx);
if (!W_ERROR_IS_OK(error)) {
fprintf(stderr, "Unable to open remote registry at %s:%s \n",

View File

@ -48,8 +48,7 @@ static struct registry_context *open_backend(TALLOC_CTX *mem_ctx,
creds);
break;
case REG_REMOTE:
error = reg_open_remote(mem_ctx, &ctx, NULL,
creds, lp_ctx,
error = reg_open_remote(mem_ctx, &ctx, creds, lp_ctx,
remote_host, ev_ctx);
break;
case REG_NULL: