diff options
-rw-r--r-- | source3/lib/talloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/talloc.c b/source3/lib/talloc.c index 1e9c0759db..b9a2f7343e 100644 --- a/source3/lib/talloc.c +++ b/source3/lib/talloc.c @@ -148,7 +148,7 @@ void *talloc_zero(TALLOC_CTX *t, size_t size) } /* memdup with a talloc. */ -void *talloc_memdup(TALLOC_CTX *t, void *p, size_t size) +void *talloc_memdup(TALLOC_CTX *t, const void *p, size_t size) { void *newp = talloc(t,size); @@ -161,7 +161,7 @@ void *talloc_memdup(TALLOC_CTX *t, void *p, size_t size) } /* strdup with a talloc */ -char *talloc_strdup(TALLOC_CTX *t, char *p) +char *talloc_strdup(TALLOC_CTX *t, const char *p) { return talloc_memdup(t, p, strlen(p) + 1); } |