git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be82f18
)
talloc: check for TALLOC_GET_TYPE_ABORT_NOOP
author
Stefan Metzmacher
<metze@samba.org>
Thu, 5 Dec 2013 07:36:13 +0000
(08:36 +0100)
committer
Stefan Metzmacher
<metze@samba.org>
Wed, 12 Mar 2014 23:04:37 +0000
(
00:04
+0100)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
lib/talloc/talloc.h
patch
|
blob
|
history
diff --git
a/lib/talloc/talloc.h
b/lib/talloc/talloc.h
index 0d47d23b2ff570db1ff0d5e6ef1cf389c4e8fc64..5ece54ddaa426f0ff54cff57bda9a12540f86fa8 100644
(file)
--- a/
lib/talloc/talloc.h
+++ b/
lib/talloc/talloc.h
@@
-761,7
+761,11
@@
type *talloc_get_type(const void *ptr, #type);
*/
void *talloc_get_type_abort(const void *ptr, #type);
#else
+#ifdef TALLOC_GET_TYPE_ABORT_NOOP
+#define talloc_get_type_abort(ptr, type) (type *)(ptr)
+#else
#define talloc_get_type_abort(ptr, type) (type *)_talloc_get_type_abort(ptr, #type, __location__)
+#endif
void *_talloc_get_type_abort(const void *ptr, const char *name, const char *location);
#endif