diff options
author | Andrew Bartlett <abartlet@samba.org> | 2011-06-07 11:38:41 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2011-06-09 12:40:08 +0200 |
commit | d5e6a47f064a3923b1e257ab84fa7ccd7c4f89f4 (patch) | |
tree | c8351772fdc171b65c12f34b711999a4d24a37af /source3/registry | |
parent | 3d15137653a7d1b593a9af2eef12f6e5b9a04c4f (diff) | |
download | samba-d5e6a47f064a3923b1e257ab84fa7ccd7c4f89f4.tar.gz samba-d5e6a47f064a3923b1e257ab84fa7ccd7c4f89f4.tar.bz2 samba-d5e6a47f064a3923b1e257ab84fa7ccd7c4f89f4.zip |
s3-talloc Change TALLOC_P() to talloc()
Using the standard macro makes it easier to move code into common, as
TALLOC_P isn't standard talloc.
Diffstat (limited to 'source3/registry')
-rw-r--r-- | source3/registry/reg_objects.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/registry/reg_objects.c b/source3/registry/reg_objects.c index 389975587d..a2ae178783 100644 --- a/source3/registry/reg_objects.c +++ b/source3/registry/reg_objects.c @@ -466,7 +466,7 @@ struct regval_blob *regval_compose(TALLOC_CTX *ctx, const char *name, uint32_t type, const uint8_t *data_p, size_t size) { - struct regval_blob *regval = TALLOC_P(ctx, struct regval_blob); + struct regval_blob *regval = talloc(ctx, struct regval_blob); if (regval == NULL) { return NULL; @@ -505,7 +505,7 @@ int regval_ctr_addvalue(struct regval_ctr *ctr, const char *name, uint32_t type, /* allocate a slot in the array of pointers */ if ( ctr->num_values == 0 ) { - ctr->values = TALLOC_P( ctr, struct regval_blob *); + ctr->values = talloc( ctr, struct regval_blob *); } else { ctr->values = talloc_realloc(ctr, ctr->values, struct regval_blob *, |