diff options
| author | Ronnie Sahlberg <ronniesahlberg@gmail.com> | 2009-12-15 21:00:22 +1100 |
|---|---|---|
| committer | Ronnie Sahlberg <ronniesahlberg@gmail.com> | 2009-12-15 21:00:22 +1100 |
| commit | fcd16342f684dfd78a5889d2550cc64e31dedc42 (patch) | |
| tree | 5e2475b166d252c06d5d10ec8b6debf6c6fdc1c8 /ctdb/lib | |
| parent | b3104bd1d0b4fc67ac5358a5d4322f4cd5a1f2b4 (diff) | |
| parent | 0982299beda2f966e1485213ffe1280fac8b7f2b (diff) | |
| download | samba-fcd16342f684dfd78a5889d2550cc64e31dedc42.tar.gz samba-fcd16342f684dfd78a5889d2550cc64e31dedc42.tar.xz samba-fcd16342f684dfd78a5889d2550cc64e31dedc42.zip | |
Merge branch 'trans3'
(This used to be ctdb commit b765e12a5fb87a6121e49b349017b6a961929346)
Diffstat (limited to 'ctdb/lib')
| -rw-r--r-- | ctdb/lib/talloc/talloc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ctdb/lib/talloc/talloc.h b/ctdb/lib/talloc/talloc.h index 15130d0d98..bc50e5d315 100644 --- a/ctdb/lib/talloc/talloc.h +++ b/ctdb/lib/talloc/talloc.h @@ -94,6 +94,7 @@ typedef void TALLOC_CTX; #define talloc_array(ctx, type, count) (type *)_talloc_array(ctx, sizeof(type), count, #type) #define talloc_array_size(ctx, size, count) _talloc_array(ctx, size, count, __location__) #define talloc_array_ptrtype(ctx, ptr, count) (_TALLOC_TYPEOF(ptr))talloc_array_size(ctx, sizeof(*(ptr)), count) +#define talloc_array_length(ctx) (talloc_get_size(ctx)/sizeof(*ctx)) #define talloc_realloc(ctx, p, type, count) (type *)_talloc_realloc_array(ctx, p, sizeof(type), count, #type) #define talloc_realloc_size(ctx, ptr, size) _talloc_realloc(ctx, ptr, size, __location__) |
