1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00

libdgram: Remove an unused parameter

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
Volker Lendecke 2018-02-17 20:45:22 +01:00 committed by Andreas Schneider
parent 92580b3f2f
commit 5ec14fd981
4 changed files with 7 additions and 8 deletions

View File

@ -131,8 +131,7 @@ NTSTATUS dgram_mailslot_netlogon_parse_request(TALLOC_CTX *mem_ctx,
struct nbt_dgram_packet *dgram, struct nbt_dgram_packet *dgram,
struct nbt_netlogon_packet *netlogon); struct nbt_netlogon_packet *netlogon);
NTSTATUS dgram_mailslot_netlogon_parse_response(struct dgram_mailslot_handler *dgmslot, NTSTATUS dgram_mailslot_netlogon_parse_response(TALLOC_CTX *mem_ctx,
TALLOC_CTX *mem_ctx,
struct nbt_dgram_packet *dgram, struct nbt_dgram_packet *dgram,
struct nbt_netlogon_response *netlogon); struct nbt_netlogon_response *netlogon);

View File

@ -123,10 +123,9 @@ NTSTATUS dgram_mailslot_netlogon_parse_request(TALLOC_CTX *mem_ctx,
/* /*
parse a netlogon response. The packet must be a valid mailslot packet parse a netlogon response. The packet must be a valid mailslot packet
*/ */
NTSTATUS dgram_mailslot_netlogon_parse_response(struct dgram_mailslot_handler *dgmslot, NTSTATUS dgram_mailslot_netlogon_parse_response(TALLOC_CTX *mem_ctx,
TALLOC_CTX *mem_ctx, struct nbt_dgram_packet *dgram,
struct nbt_dgram_packet *dgram, struct nbt_netlogon_response *netlogon)
struct nbt_netlogon_response *netlogon)
{ {
NTSTATUS status; NTSTATUS status;
DATA_BLOB data = dgram_mailslot_data(dgram); DATA_BLOB data = dgram_mailslot_data(dgram);

View File

@ -70,7 +70,7 @@ static void getdc_recv_netlogon_reply(struct dgram_mailslot_handler *dgmslot,
struct nbt_netlogon_response netlogon; struct nbt_netlogon_response netlogon;
NTSTATUS status; NTSTATUS status;
status = dgram_mailslot_netlogon_parse_response(dgmslot, packet, packet, status = dgram_mailslot_netlogon_parse_response(packet, packet,
&netlogon); &netlogon);
if (!NT_STATUS_IS_OK(status)) { if (!NT_STATUS_IS_OK(status)) {
DEBUG(5, ("dgram_mailslot_ntlogon_parse failed: %s\n", DEBUG(5, ("dgram_mailslot_ntlogon_parse failed: %s\n",

View File

@ -51,7 +51,8 @@ static void netlogon_handler(struct dgram_mailslot_handler *dgmslot,
printf("netlogon reply from %s:%d\n", src->addr, src->port); printf("netlogon reply from %s:%d\n", src->addr, src->port);
/* Fills in the netlogon pointer */ /* Fills in the netlogon pointer */
status = dgram_mailslot_netlogon_parse_response(dgmslot, netlogon, packet, netlogon); status = dgram_mailslot_netlogon_parse_response(netlogon, packet,
netlogon);
if (!NT_STATUS_IS_OK(status)) { if (!NT_STATUS_IS_OK(status)) {
printf("Failed to parse netlogon packet from %s:%d\n", printf("Failed to parse netlogon packet from %s:%d\n",
src->addr, src->port); src->addr, src->port);