summaryrefslogtreecommitdiffstats
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
commitea5d2857217b860da7e53bc6e8ccfe48a2b3620e (patch)
tree930bd1d78c30f0c61456346ddb6a42259f65dece
parent3f3bb62ba63373c3cdf2495f97c7461ed5b373ef (diff)
downloadsamba-ea5d2857217b860da7e53bc6e8ccfe48a2b3620e.tar.gz
samba-ea5d2857217b860da7e53bc6e8ccfe48a2b3620e.tar.xz
samba-ea5d2857217b860da7e53bc6e8ccfe48a2b3620e.zip
const religion in talloc calls
-rw-r--r--source/lib/talloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/lib/talloc.c b/source/lib/talloc.c
index 1e9c0759db1..b9a2f7343e2 100644
--- a/source/lib/talloc.c
+++ b/source/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);
}