1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-26 21:57:41 +03:00

rpc_servers: Remove unused variables

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Samuel Cabrero <scabrero@samba.org>
This commit is contained in:
Volker Lendecke 2021-01-07 20:53:17 +01:00
parent 79a73b4484
commit 912196f430
3 changed files with 0 additions and 13 deletions

View File

@ -585,7 +585,6 @@ static NTSTATUS spoolssd_create_sockets(struct tevent_context *ev_ctx,
size_t *pnum_listen_fds)
{
NTSTATUS status;
int fd = -1;
int rc;
enum rpc_service_mode_e epm_mode = rpc_epmapper_mode();
size_t i, num_fds;
@ -640,10 +639,6 @@ static NTSTATUS spoolssd_create_sockets(struct tevent_context *ev_ctx,
status = NT_STATUS_OK;
done:
if (fd != -1) {
close(fd);
}
return status;
}

View File

@ -550,7 +550,6 @@ static NTSTATUS lsasd_create_sockets(struct tevent_context *ev_ctx,
size_t *pnum_listen_fds)
{
NTSTATUS status;
int fd = -1;
size_t i, num_fds;
struct pf_listen_fd *fds = NULL;
int rc;
@ -601,9 +600,6 @@ static NTSTATUS lsasd_create_sockets(struct tevent_context *ev_ctx,
status = NT_STATUS_OK;
done:
if (fd != -1) {
close(fd);
}
return status;
}

View File

@ -500,7 +500,6 @@ static NTSTATUS mdssd_create_sockets(struct tevent_context *ev_ctx,
size_t *pnum_listen_fds)
{
NTSTATUS status;
int fd = -1;
size_t i, num_fds;
struct pf_listen_fd *fds = NULL;
int rc;
@ -551,9 +550,6 @@ static NTSTATUS mdssd_create_sockets(struct tevent_context *ev_ctx,
status = NT_STATUS_OK;
done:
if (fd != -1) {
close(fd);
}
return status;
}