s3-talloc Change TALLOC_ARRAY() to talloc_array()
[samba.git] / source3 / locking / posix.c
index e6acbe8bac4f2f38e397067043c0452150a585f5..2e590413f86c7e6fabae1e2b9f7a28220f0358dd 100644 (file)
 */
 
 #include "includes.h"
+#include "system/filesys.h"
+#include "locking/proto.h"
+#include "dbwrap.h"
+#include "util_tdb.h"
 
 #undef DBGC_CLASS
 #define DBGC_CLASS DBGC_LOCKING
@@ -554,7 +558,7 @@ static void add_fd_to_close_entry(files_struct *fsp)
 
        SMB_ASSERT(rec != NULL);
 
-       new_data = TALLOC_ARRAY(
+       new_data = talloc_array(
                rec, uint8_t, rec->value.dsize + sizeof(fsp->fh->fd));
 
        SMB_ASSERT(new_data != NULL);