smbd: Remove duplicate read_nttrans_ea_list function prototype
authorDavid Mulder <dmulder@suse.com>
Mon, 21 Mar 2022 20:18:58 +0000 (14:18 -0600)
committerJeremy Allison <jra@samba.org>
Thu, 7 Apr 2022 17:37:30 +0000 (17:37 +0000)
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 <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/smb1_nttrans.h
source3/smbd/smb2_create.c

index fa2f195a997eb47fb75dd8b10baf7874a566ca57..cbd6d1fed184141c6a2667251d86be82f1b3f343 100644 (file)
@@ -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);
index 2f6d81fb616a1cc8d092b4d5dc8b9b087d397a6a..856bf9e50de71b3f5c79898072aebdec380280dc 100644 (file)
@@ -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