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:
parent
79a73b4484
commit
912196f430
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user