diff options
author | Andrew Tridgell <tridge@samba.org> | 2001-12-04 06:14:42 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2001-12-04 06:14:42 +0000 |
commit | aa1e690ba595b33817bdc5cf32e51a3aaa90c89e (patch) | |
tree | e726fc45e047419e0c5015372efd0543ae796af0 | |
parent | a2fbc74f74c8c393129ef8b0b02693a4887107f7 (diff) | |
download | samba-aa1e690ba595b33817bdc5cf32e51a3aaa90c89e.tar.gz samba-aa1e690ba595b33817bdc5cf32e51a3aaa90c89e.tar.bz2 samba-aa1e690ba595b33817bdc5cf32e51a3aaa90c89e.zip |
const religion in talloc calls
(This used to be commit ea5d2857217b860da7e53bc6e8ccfe48a2b3620e)
-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); } |