Change uint_t to unsigned int in lib/replace
[ira/wip.git] / lib / tdr / tdr.h
index c983cd35c14ed3e941858f8c20946ac3ee27d23b..84f3e50c2ba89691aa38ff6f1ef46736facd0643 100644 (file)
@@ -55,13 +55,13 @@ struct tdr_print {
                         } 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__ */