1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-26 04:23:49 +03:00

r18439: 2nd try at a talloc_move() api. This type with the ** ptr interface

exposed.

Unfortunately this generates a large number of type punning
warnings. We'll have to find some magic to hide those.
This commit is contained in:
Andrew Tridgell
2006-09-13 02:33:51 +00:00
committed by Gerald (Jerry) Carter
parent b0de283882
commit 254cbf09de
14 changed files with 34 additions and 32 deletions

View File

@@ -528,7 +528,7 @@ static int ldb_search_callback(struct ldb_context *ldb, void *context, struct ld
res->msgs[res->count + 1] = NULL;
res->msgs[res->count] = talloc_move(res->msgs, ares->message);
res->msgs[res->count] = talloc_move(res->msgs, &ares->message);
res->count++;
}
@@ -544,7 +544,7 @@ static int ldb_search_callback(struct ldb_context *ldb, void *context, struct ld
goto error;
}
res->refs[n] = talloc_move(res->refs, ares->referral);
res->refs[n] = talloc_move(res->refs, &ares->referral);
res->refs[n + 1] = NULL;
}