From: David Mulder Date: Mon, 21 Mar 2022 20:18:58 +0000 (-0600) Subject: smbd: Remove duplicate read_nttrans_ea_list function prototype X-Git-Tag: tevent-0.12.0~52 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f810a113a892117c9b8a0ea1d649bc1d21aeb636;p=thirdparty%2Fsamba.git smbd: Remove duplicate read_nttrans_ea_list function prototype Because this stray prototype was mixed in with the smb1 code, it caused the smb2-only build to fail. Instead of duplicating the function prototype, lets just include the correct header. Signed-off-by: David Mulder Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/smb1_nttrans.h b/source3/smbd/smb1_nttrans.h index fa2f195a997..cbd6d1fed18 100644 --- a/source3/smbd/smb1_nttrans.h +++ b/source3/smbd/smb1_nttrans.h @@ -19,7 +19,6 @@ */ void reply_ntcreate_and_X(struct smb_request *req); -struct ea_list *read_nttrans_ea_list(TALLOC_CTX *ctx, const char *pdata, size_t data_size); void reply_ntcancel(struct smb_request *req); void reply_ntrename(struct smb_request *req); void reply_nttrans(struct smb_request *req); diff --git a/source3/smbd/smb2_create.c b/source3/smbd/smb2_create.c index 2f6d81fb616..856bf9e50de 100644 --- a/source3/smbd/smb2_create.c +++ b/source3/smbd/smb2_create.c @@ -29,6 +29,7 @@ #include "../librpc/gen_ndr/ndr_smb2_lease_struct.h" #include "../lib/util/tevent_ntstatus.h" #include "messages.h" +#include "lib/util_ea.h" #undef DBGC_CLASS #define DBGC_CLASS DBGC_SMB2