} while (0)
#define TDR_ALLOC(ctx, s, n) do { \
- (s) = talloc_array_size(ctx, sizeof(*(s)), n); \
+ (s) = talloc_array_ptrtype(ctx, (s), n); \
if ((n) && !(s)) return NT_STATUS_NO_MEMORY; \
} while (0)
typedef NTSTATUS (*tdr_push_fn_t) (struct tdr_push *, const void *);
typedef NTSTATUS (*tdr_pull_fn_t) (struct tdr_pull *, TALLOC_CTX *, void *);
-#include "lib/tdr/tdr_proto.h"
+#include "../lib/tdr/tdr_proto.h"
#endif /* __TDR_H__ */