From: Volker Lendecke Date: Sat, 17 Feb 2018 19:42:19 +0000 (+0100) Subject: libdgram: Remove an unused parameter X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=92580b3f2fb1e23e5bfcc0e8ab19ee02e9ea5958;p=metze%2Fsamba%2Fwip.git libdgram: Remove an unused parameter Signed-off-by: Volker Lendecke Reviewed-by: Andreas Schneider --- diff --git a/source4/libcli/dgram/libdgram.h b/source4/libcli/dgram/libdgram.h index 280c27d41d1f..64a912720584 100644 --- a/source4/libcli/dgram/libdgram.h +++ b/source4/libcli/dgram/libdgram.h @@ -127,8 +127,7 @@ NTSTATUS dgram_mailslot_netlogon_reply(struct nbt_dgram_socket *dgmsock, const char *my_netbios_name, const char *mailslot_name, struct nbt_netlogon_response *reply); -NTSTATUS dgram_mailslot_netlogon_parse_request(struct dgram_mailslot_handler *dgmslot, - TALLOC_CTX *mem_ctx, +NTSTATUS dgram_mailslot_netlogon_parse_request(TALLOC_CTX *mem_ctx, struct nbt_dgram_packet *dgram, struct nbt_netlogon_packet *netlogon); diff --git a/source4/libcli/dgram/netlogon.c b/source4/libcli/dgram/netlogon.c index a16a3b96624c..f224afda79d0 100644 --- a/source4/libcli/dgram/netlogon.c +++ b/source4/libcli/dgram/netlogon.c @@ -99,8 +99,7 @@ NTSTATUS dgram_mailslot_netlogon_reply(struct nbt_dgram_socket *dgmsock, /* parse a netlogon request. The packet must be a valid mailslot packet */ -NTSTATUS dgram_mailslot_netlogon_parse_request(struct dgram_mailslot_handler *dgmslot, - TALLOC_CTX *mem_ctx, +NTSTATUS dgram_mailslot_netlogon_parse_request(TALLOC_CTX *mem_ctx, struct nbt_dgram_packet *dgram, struct nbt_netlogon_packet *netlogon) { diff --git a/source4/nbt_server/dgram/netlogon.c b/source4/nbt_server/dgram/netlogon.c index c88ffb51f2ca..1a0b9eeb491a 100644 --- a/source4/nbt_server/dgram/netlogon.c +++ b/source4/nbt_server/dgram/netlogon.c @@ -171,7 +171,8 @@ void nbtd_mailslot_netlogon_handler(struct dgram_mailslot_handler *dgmslot, DEBUG(5,("netlogon request to %s from %s:%d\n", nbt_name_string(netlogon, name), src->addr, src->port)); - status = dgram_mailslot_netlogon_parse_request(dgmslot, netlogon, packet, netlogon); + status = dgram_mailslot_netlogon_parse_request(netlogon, packet, + netlogon); if (!NT_STATUS_IS_OK(status)) goto failed; switch (netlogon->command) {