git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce02a7e
)
r18946: fix compiler warning
author
Stefan Metzmacher
<metze@samba.org>
Wed, 27 Sep 2006 06:48:24 +0000
(06:48 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 19:20:23 +0000
(14:20 -0500)
metze
(This used to be commit
450595822441ebaa199d6b10d568274940b1a91b
)
source4/lib/talloc/talloc.c
patch
|
blob
|
history
diff --git
a/source4/lib/talloc/talloc.c
b/source4/lib/talloc/talloc.c
index d790c6c26bbe3b8ee28f7978be75280088359b80..58028a85b8cd05e88f65ff10be9d896fe2249c0b 100644
(file)
--- a/
source4/lib/talloc/talloc.c
+++ b/
source4/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;