summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-12-04 06:14:42 +0000
committerAndrew Tridgell <tridge@samba.org>2001-12-04 06:14:42 +0000
commitaa1e690ba595b33817bdc5cf32e51a3aaa90c89e (patch)
treee726fc45e047419e0c5015372efd0543ae796af0 /source3/lib
parenta2fbc74f74c8c393129ef8b0b02693a4887107f7 (diff)
downloadsamba-aa1e690ba595b33817bdc5cf32e51a3aaa90c89e.tar.gz
samba-aa1e690ba595b33817bdc5cf32e51a3aaa90c89e.tar.bz2
samba-aa1e690ba595b33817bdc5cf32e51a3aaa90c89e.zip
const religion in talloc calls
(This used to be commit ea5d2857217b860da7e53bc6e8ccfe48a2b3620e)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/talloc.c4
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);
}