summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/ctdb_packet.c2
-rw-r--r--source3/lib/util.c2
-rw-r--r--source3/lib/util_sock.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/source3/lib/ctdb_packet.c b/source3/lib/ctdb_packet.c
index 9faf519a60..17c70ff2d6 100644
--- a/source3/lib/ctdb_packet.c
+++ b/source3/lib/ctdb_packet.c
@@ -153,7 +153,7 @@ bool ctdb_packet_handler(struct ctdb_packet_context *ctx,
ctx->in.data = NULL;
ctx->in.length = 0;
} else {
- buf = (uint8_t *)TALLOC_MEMDUP(ctx, ctx->in.data, length);
+ buf = (uint8_t *)talloc_memdup(ctx, ctx->in.data, length);
if (buf == NULL) {
*status = NT_STATUS_NO_MEMORY;
return true;
diff --git a/source3/lib/util.c b/source3/lib/util.c
index b4af9fbc0e..af5f63995b 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -1563,7 +1563,7 @@ bool parent_dirname(TALLOC_CTX *mem_ctx, const char *dir, char **parent,
len = p-dir;
- if (!(*parent = (char *)TALLOC_MEMDUP(mem_ctx, dir, len+1))) {
+ if (!(*parent = (char *)talloc_memdup(mem_ctx, dir, len+1))) {
return False;
}
(*parent)[len] = '\0';
diff --git a/source3/lib/util_sock.c b/source3/lib/util_sock.c
index d44adaf915..fd91fd58dc 100644
--- a/source3/lib/util_sock.c
+++ b/source3/lib/util_sock.c
@@ -257,7 +257,7 @@ ssize_t write_data_iov(int fd, const struct iovec *orig_iov, int iovcnt)
* discarding elements.
*/
- iov_copy = (struct iovec *)TALLOC_MEMDUP(
+ iov_copy = (struct iovec *)talloc_memdup(
talloc_tos(), orig_iov, sizeof(struct iovec) * iovcnt);
if (iov_copy == NULL) {