summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-09-27 12:43:08 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:14:50 -0500
commitcf5ab86a65bf447174d17198286d8f4ae999e967 (patch)
tree89775f34fb14be32e86c392f2e68ff34accf741f /source3/lib
parentdc030ce813e90435ae5badaef3d3ff2b58ffa3e4 (diff)
downloadsamba-cf5ab86a65bf447174d17198286d8f4ae999e967.tar.gz
samba-cf5ab86a65bf447174d17198286d8f4ae999e967.tar.bz2
samba-cf5ab86a65bf447174d17198286d8f4ae999e967.zip
r18952: fix compiler warning (merge from samba4)
metze (This used to be commit 4cd59d47c8d21685cfab45f4bcfc005c5d7cf79e)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/talloc/talloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/talloc/talloc.c b/source3/lib/talloc/talloc.c
index d790c6c26b..58028a85b8 100644
--- a/source3/lib/talloc/talloc.c
+++ b/source3/lib/talloc/talloc.c
@@ -743,7 +743,7 @@ void *_talloc_steal(const void *new_ctx, const void *ptr)
*/
void *_talloc_move(const void *new_ctx, const void *_pptr)
{
- const void **pptr = (const void **)_pptr;
+ const void **pptr = discard_const_p(const void *,_pptr);
void *ret = _talloc_steal(new_ctx, *pptr);
(*pptr) = NULL;
return ret;